diff options
author | 2019-09-30 20:35:23 -0700 | |
---|---|---|
committer | 2019-10-01 18:25:33 -0700 | |
commit | 0b348e5b8bbdb2227f77a5074a431946bbc46b59 (patch) | |
tree | e99901b07483b64868562b40a3be1338d18ad6d9 | |
parent | Remove extension setup methods from the moderation modules (diff) |
Fix stars.json resource test
-rw-r--r-- | tests/test_resources.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_resources.py b/tests/test_resources.py index 2b17aea64..bcf124f05 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -1,18 +1,13 @@ import json -import mimetypes from pathlib import Path -from urllib.parse import urlparse def test_stars_valid(): - """Validates that `bot/resources/stars.json` contains valid images.""" + """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 url in data.values(): - assert urlparse(url).scheme == 'https' - - mimetype, _ = mimetypes.guess_type(url) - assert mimetype in ('image/jpeg', 'image/png') + for name in data: + assert type(name) is str |