feat(backend): create improved tests
This commit is contained in:
@@ -10,6 +10,7 @@ from backend.db import DatabaseConnection
|
||||
from backend.repositories import (
|
||||
MemberRepository,
|
||||
ClassificationRepository,
|
||||
ServiceRepository,
|
||||
ServiceTypeRepository,
|
||||
ServiceAvailabilityRepository,
|
||||
)
|
||||
@@ -156,6 +157,14 @@ def service_type_repo(
|
||||
return ServiceTypeRepository(db_connection)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def service_repo(
|
||||
db_connection: DatabaseConnection,
|
||||
seed_lookup_tables,
|
||||
) -> ServiceRepository:
|
||||
return ServiceRepository(db_connection)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def service_availability_repo(
|
||||
db_connection: DatabaseConnection,
|
||||
|
||||
Reference in New Issue
Block a user