diff options
author | 2019-10-20 21:14:12 +0200 | |
---|---|---|
committer | 2019-10-20 21:14:12 +0200 | |
commit | f194df838c623d3c1b68809230f396a7241508b1 (patch) | |
tree | c4376bd37862d868fe100cababc731911d48fabd /tests/test_constants.py | |
parent | Merge pull request #528 from bendiller/antimalware-cog (diff) | |
parent | Merge branch 'master' into unittest-migration (diff) |
Merge pull request #517 from python-discord/unittest-migration
Migrating the test suite to the `unittest` framework
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) |