SPB Git forge

spb/countryatlas

Public
20commits 1branches 0releases
268.3 MBsize
maindefault branch
12 days agolast push
TypeScript 57% Python 38.6% JavaScript 3.6% CSS 0.6%
937 B · 33 lines python
Raw Blame History
1"""Connector-test fixtures (scoped to tests/connectors so the root conftest stays untouched).23Tests marked `live` hit the real IMF/OECD/Eurostat endpoints; they are skipped unless selected with `pytest -m live`.4"""5from __future__ import annotations67from datetime import UTC, datetime8from pathlib import Path910import pytest1112FIXTURES = Path(__file__).resolve().parent.parent / "fixtures"131415def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item]) -> None:16    markexpr = config.getoption("-m", default="") or ""17    if "live" in markexpr:18        return19    skip = pytest.mark.skip(reason="live test — select explicitly with `pytest -m live`")20    for item in items:21        if "live" in item.keywords:22            item.add_marker(skip)232425@pytest.fixture26def fixtures_dir() -> Path:27    return FIXTURES282930@pytest.fixture31def retrieved_at() -> datetime:32    return datetime(2026, 9, 11, 12, 0, tzinfo=UTC)33