diff options
Diffstat (limited to 'tests/test_resources.py')
-rw-r--r-- | tests/test_resources.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_resources.py b/tests/test_resources.py new file mode 100644 index 000000000..bcf124f05 --- /dev/null +++ b/tests/test_resources.py @@ -0,0 +1,13 @@ +import json +from pathlib import Path + + +def test_stars_valid(): + """Validates that `bot/resources/stars.json` contains a list of strings.""" + + path = Path('bot', 'resources', 'stars.json') + content = path.read_text() + data = json.loads(content) + + for name in data: + assert type(name) is str |