We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c14c311 commit 443bd7dCopy full SHA for 443bd7d
runtime-tests/test_runtime.py
@@ -9,10 +9,9 @@
9
As such, they may need to evolve with Macrostrat's data holdings.
10
"""
11
12
-from time import sleep
13
-
14
from pytest import mark
15
from requests import Session
+from time import sleep
16
17
client = Session()
18
@@ -55,3 +54,13 @@ def exponential_backoff(url):
55
54
yield res
56
sleep(2**i)
57
+
58
59
+# Tile server should return an image for a legacy tile request
60
+def test_legacy_tile():
61
+ # TODO: modify this for dev URLs
62
+ url = "https://macrostrat.org/api/v2/maps/burwell/emphasized/1/0/1/tile.png"
63
+ res = client.get(url)
64
+ assert res.status_code == 200
65
+ assert res.headers["Content-Type"] == "image/png"
66
+ assert len(res.content) > 0, "Tile content should not be empty"
0 commit comments