add-resume #12

Merged
dan merged 7 commits from add-resume into dev 2023-12-07 19:38:19 +01:00
Showing only changes of commit 10f5713d8d - Show all commits

View file

@ -23,6 +23,12 @@ def pytest_addoption(parser: Parser):
parser.addoption("--timeout", action="store", type=int, default=20_000)
@pytest.fixture(autouse=True)
def set_expect_timeout(request):
TIMEOUT = request.config.getoption("--timeout")
expect.set_options(timeout=TIMEOUT)
@pytest.fixture
def context(context: BrowserContext, request) -> BrowserContext:
# note: because this has the existing context fixture as an argument, it is ensured
@ -33,7 +39,6 @@ def context(context: BrowserContext, request) -> BrowserContext:
context.set_default_timeout(TIMEOUT)
context.set_extra_http_headers(LOCALE)
expect.set_options(timeout=TIMEOUT)
return context