chore: allow to set playwright timeout from env var
so we can increase it in the CI
This commit is contained in:
parent
d0cc1cdd3d
commit
c79660c354
2 changed files with 4 additions and 1 deletions
1
.github/workflows/test-docs.yml
vendored
1
.github/workflows/test-docs.yml
vendored
|
@ -46,6 +46,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DJANGO_SETTINGS_MODULE: 'umap.tests.settings'
|
DJANGO_SETTINGS_MODULE: 'umap.tests.settings'
|
||||||
UMAP_SETTINGS: 'umap/tests/settings.py'
|
UMAP_SETTINGS: 'umap/tests/settings.py'
|
||||||
|
PLAYWRIGHT_TIMEOUT: '10000'
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
|
import os
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def set_timeout(context):
|
def set_timeout(context):
|
||||||
context.set_default_timeout(7500)
|
context.set_default_timeout(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500))
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
Loading…
Reference in a new issue