diff options
| author | 2019-10-26 17:16:01 +0200 | |
|---|---|---|
| committer | 2019-10-26 17:16:01 +0200 | |
| commit | a9b0027755a89af79d4cf81e6b49a6b5a029b405 (patch) | |
| tree | 4b16923c7918e062179a1bb013d9acf813be4020 /tests/test_constants.py | |
| parent | Add reddit environment variable, change User-Agent and fix lint problem (diff) | |
| parent | Merge pull request #527 from kraktus/compact_free (diff) | |
Resolved merge conflicts.
Add retry loop to token request.
Revoke access token after usage.
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) |