aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_resources.py
diff options
context:
space:
mode:
authorGravatar Daniel Brown <[email protected]>2019-11-04 10:43:35 -0600
committerGravatar GitHub <[email protected]>2019-11-04 10:43:35 -0600
commit726a33c0cedd838fab7ef02e72850ecca1a903cd (patch)
tree2ec0f6c3da7d203a065f9c4f8b1596eb529d5e50 /tests/test_resources.py
parentAdd check when a message is edited (diff)
parentUser command enhancements (#637) (diff)
Merge branch 'master' into token_and_bad_code
Diffstat (limited to 'tests/test_resources.py')
-rw-r--r--tests/test_resources.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test_resources.py b/tests/test_resources.py
deleted file mode 100644
index 2b17aea64..000000000
--- a/tests/test_resources.py
+++ /dev/null
@@ -1,18 +0,0 @@
-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."""
-
- 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')