added test configuration fixtures

blueprint_refactoring
Simon Pirkelmann 2022-01-27 23:48:31 +01:00
parent a104a3d00f
commit ace5868571
1 changed files with 21 additions and 0 deletions

21
tests/conftest.py Normal file
View File

@ -0,0 +1,21 @@
import pytest
from selenium.webdriver import Chrome
from imaginaerraum_door_admin import create_app
@pytest.fixture(scope='session')
def app():
"""Fixture to launch the webapp"""
app = create_app()
return app
@pytest.fixture
def browser():
"""Fixture for a selenium browser to access the webapp."""
driver = Chrome()
driver.implicitly_wait(10)
yield driver
driver.quit()