installable package #9
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue