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