diff options
author | 2019-10-10 00:11:04 -0700 | |
---|---|---|
committer | 2019-10-10 00:11:04 -0700 | |
commit | b57f5c0dfa298da372b44b44aa7ed668f0c4bbd9 (patch) | |
tree | c500f0069dd5fe8c5e0626a5a91bb89ba059abf8 /tests/test_resources.py | |
parent | Add missing awaits and call bot as attribut (diff) | |
parent | Merge pull request #505 from python-discord/user-log-display-name-changes (diff) |
Merge remote-tracking branch 'origin/master' into Refactor-preparation-methods-of-cogs
Co-Authored-By: K4cePhoenix <[email protected]>
Diffstat (limited to 'tests/test_resources.py')
-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 |