aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_resources.py
diff options
context:
space:
mode:
authorGravatar Akarys42 <[email protected]>2019-10-19 12:05:01 +0200
committerGravatar Akarys42 <[email protected]>2019-10-19 12:05:01 +0200
commitc6fe0050ba798932165fc74161e3739dcc453427 (patch)
tree6357417b042b9f33de977a9e5cb6aa71e9fb1c5d /tests/test_resources.py
parentDelete “confirmation echo” (diff)
parentFix rule alias. (#537) (diff)
Merge branch 'master' of https://github.com/python-discord/bot into reminder-up
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