morethantext-web/tests/step_defs/conftest.py

26 lines
408 B
Python
Raw Normal View History

2022-06-03 11:52:18 -04:00
"""PyTest configuration."""
from pytest import fixture
from .server import Server
from .page import Page
2022-06-03 11:52:18 -04:00
@fixture
def server():
"""Create a server instance."""
serv = Server()
yield serv
serv.destroy()
2022-06-03 11:52:18 -04:00
@fixture
def page():
"""Return a page for testing."""
return Page()
@fixture
def data_store():
"""Return a dictionary to hold between function test data."""
return {}