mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
chore: use our own page fixture so to print console messages
This commit is contained in:
parent
3fa478abac
commit
a035b6cb38
1 changed files with 7 additions and 0 deletions
|
@ -26,6 +26,13 @@ def mock_osm_tiles(page):
|
|||
page.route("*/**/osmfr/**", lambda route: route.fulfill())
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def page(context):
|
||||
page = context.new_page()
|
||||
page.on("console", lambda msg: print(msg.text) if msg.type != "warning" else None)
|
||||
return page
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def login(context, settings, live_server):
|
||||
def do_login(user):
|
||||
|
|
Loading…
Reference in a new issue