Skip to content

Commit

Permalink
fixup! Update to Atoti Python API 0.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tibdex committed Feb 14, 2024
1 parent 42e6624 commit cc2ce63
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import atoti as tt
import pytest

from app import App, Config
from app import Config, start_app

_TESTS_DIRECTORY = Path(__file__).parent
_TESTS_DATA_PATH = _TESTS_DIRECTORY / "data"
Expand All @@ -30,15 +30,10 @@ def config_fixture() -> Config:


@pytest.fixture(
name="app",
name="session",
# Don't use this fixture in tests mutating the app or its underlying session.
scope="session",
)
def app_fixture(config: Config) -> Generator[App, None, None]:
with App(config=config) as app:
yield app


@pytest.fixture(name="session", scope="session")
def session_fixture(app: App) -> tt.Session:
return app.session
def session_fixture(config: Config) -> Generator[tt.Session, None, None]:
with start_app(config=config) as session:
yield session

0 comments on commit cc2ce63

Please sign in to comment.