morethantext-web/tests/step_defs/conftest.py

18 lines
272 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
@fixture
def server():
"""Create a server instance."""
serv = Server()
yield serv
serv.destroy()
@fixture
def page():
pg = Page()
return pg