diff --git a/test-suite/conftest.py b/test-suite/conftest.py index 4489b7e..0e01dee 100644 --- a/test-suite/conftest.py +++ b/test-suite/conftest.py @@ -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