This commit is contained in:
Daniel 2023-12-06 23:00:20 +01:00
parent a26d5f2e84
commit 35908ddc00

View file

@ -21,6 +21,9 @@ expect.set_options(timeout=TIMEOUT)
@pytest.fixture
def context(context: BrowserContext) -> BrowserContext:
# note: because this has the existing context fixture as an argument, it is ensured
# that the original fixture is called first and then overwritten by this custom one.
context.set_default_timeout(TIMEOUT)
context.set_extra_http_headers(LOCALE)
return context