aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_resources.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-10-11 15:07:19 -0700
committerGravatar MarkKoz <[email protected]>2019-10-11 15:07:19 -0700
commit1c8596b894f61983bde08c36da2ca0e08701773b (patch)
tree2794bbf74b351b2722f020b33788e94affa62efc /tests/test_resources.py
parentGet the prefix from the config for the periodic ping message (diff)
parentMerge pull request #506 from python-discord/token-regex-tweak (diff)
Merge remote-tracking branch 'origin/master' into modif_2
Diffstat (limited to 'tests/test_resources.py')
-rw-r--r--tests/test_resources.py11
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