diff options
author | 2019-10-25 10:12:23 -0700 | |
---|---|---|
committer | 2019-10-25 10:12:23 -0700 | |
commit | e68e9ef9cc6d6670a1c6b6a712fe87be1f33d60b (patch) | |
tree | cccbc64ce0b9056efb7b2c07cbec9826d77400ff /tests/test_constants.py | |
parent | Remove bold tag when no channel is available (diff) | |
parent | Merge pull request #501 from mathsman5133/reddit-makeover (diff) |
Merge branch 'master' into compact_free
Diffstat (limited to 'tests/test_constants.py')
-rw-r--r-- | tests/test_constants.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/test_constants.py b/tests/test_constants.py deleted file mode 100644 index e4a29d994..000000000 --- a/tests/test_constants.py +++ /dev/null @@ -1,23 +0,0 @@ -import inspect - -import pytest - -from bot import constants - - - 'section', - ( - cls - for (name, cls) in inspect.getmembers(constants) - if hasattr(cls, 'section') and isinstance(cls, type) - ) -) -def test_section_configuration_matches_typespec(section): - for (name, annotation) in section.__annotations__.items(): - value = getattr(section, name) - - if getattr(annotation, '_name', None) in ('Dict', 'List'): - pytest.skip("Cannot validate containers yet") - - assert isinstance(value, annotation) |