Merge pull request #1762 from umap-project/pw-timeout

chore: allow to set playwright timeout from env var
This commit is contained in:
Yohan Boniface 2024-04-17 15:03:46 +02:00 committed by GitHub
commit 1bf2642090
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,7 @@ jobs:
env:
DJANGO_SETTINGS_MODULE: 'umap.tests.settings'
UMAP_SETTINGS: 'umap/tests/settings.py'
PLAYWRIGHT_TIMEOUT: '20000'
lint:
runs-on: ubuntu-latest
steps:

View file

@ -1,9 +1,11 @@
import os
import pytest
@pytest.fixture(autouse=True)
def set_timeout(context):
context.set_default_timeout(7500)
context.set_default_timeout(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500))
@pytest.fixture