Merge pull request #1965 from umap-project/playwright-tile-debug

chore: always use real tiles in playwright when in debug mode
This commit is contained in:
Yohan Boniface 2024-07-02 19:18:20 +02:00 committed by GitHub
commit eabc85dc98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ def set_timeout(context):
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
def mock_osm_tiles(page): def mock_osm_tiles(page):
if not bool(os.environ.get("PLAYWRIGHT_USE_TILES", False)): if not bool(os.environ.get("PWDEBUG", False)):
page.route("*/**/osmfr/**", lambda route: route.fulfill()) page.route("*/**/osmfr/**", lambda route: route.fulfill())