Skip to content

Commit

Permalink
fixup! Add mirrors check to test-suite
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Nov 6, 2024
1 parent e83765e commit 7a96ca3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test-suite/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
APK_MIRRORS_IDS: list[str] = [mirror.hostname for mirror in APK_MIRRORS]


@pytest.fixture(scope="session")
def illus_endpoint():
resp = requests.get(get_url(path="/catalog/search?count=1"), timeout=5)
for line in resp.text.splitlines():

match = re.search(r"/catalog/v2/illustration/([^/]+)/\?size=48", line)
if match:
yield match.group()


@pytest.fixture(scope="session")
def mirrors_list_url():
yield MIRRORS_LIST_URL
Expand Down

0 comments on commit 7a96ca3

Please sign in to comment.