Added test behaviour

This commit is contained in:
Tim
2023-11-05 18:36:20 +01:00
parent 4d2ca3b3e7
commit 41af7e2d18
7 changed files with 69 additions and 46 deletions

View File

@ -1,8 +1,20 @@
"""Tests for company elements."""
from collections.abc import Generator
import pytest
from sqlalchemy.orm import Session
from aki_prj23_transparenzregister.ui import company_elements, data_elements
from aki_prj23_transparenzregister.ui.session_handler import SessionHandler
@pytest.fixture(autouse=True)
def _set_session(full_db: Session) -> Generator[None, None, None]:
"""Sets a session for the dash application to be used."""
SessionHandler.session = full_db
yield
SessionHandler.session = None
def test_import() -> None: