aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-05-23 15:17:57 +0200
committerGravatar Leon Sandøy <[email protected]>2020-05-23 15:17:57 +0200
commit5120717a47c07812d1631cf0905ff3062e139487 (patch)
tree9da658952b14728a682be4b824a3940d95f8078d /tests/helpers.py
parentDon't rely on HDEL ignoring keys for .pop (diff)
DRY approach to typestring prefix resolution
Thanks to @kwzrd for this idea, basically we're making a constant with the typestring prefixes and iterating that in all our converters. These converter functions will also now raise TypeErrors if we try to convert something that isn't in this constants list. I've also added a new test that tests this functionality.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions