aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_constants.py
diff options
context:
space:
mode:
authorGravatar Joseph <[email protected]>2020-02-02 22:52:03 +0000
committerGravatar GitHub <[email protected]>2020-02-02 22:52:03 +0000
commitb71acff240562d58ca41533c8185be4ace86e664 (patch)
tree26c43d16d83a52989a0db465265cd12a5a083b34 /tests/test_constants.py
parentMake it easier for user to search for tags (diff)
parentUpdate CODEOWNERS (diff)
Merge branch 'master' into fuzzy-tag-search
Diffstat (limited to 'tests/test_constants.py')
-rw-r--r--tests/test_constants.py23
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)