mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-16 09:00:16 -04:00
31 lines
822 B
Python
31 lines
822 B
Python
"""Fixtures used for testing the core services."""
|
|
|
|
import pytest
|
|
from unittest.mock import create_autospec
|
|
from sqlalchemy.orm import Session
|
|
from ...services import UserService, TagService, ServiceService, ResourceService
|
|
|
|
|
|
@pytest.fixture()
|
|
def user_svc(session: Session):
|
|
"""This fixture is used to test the UserService class"""
|
|
return UserService(session)
|
|
|
|
|
|
@pytest.fixture()
|
|
def tag_svc(session: Session):
|
|
"""This fixture is used to test the TagService class"""
|
|
return TagService(session)
|
|
|
|
|
|
@pytest.fixture()
|
|
def service_svc(session: Session):
|
|
"""This fixture is used to test the ServiceService class"""
|
|
return ServiceService(session)
|
|
|
|
|
|
@pytest.fixture()
|
|
def resource_svc(session: Session):
|
|
"""This fixutre is used to test the ResourceService class"""
|
|
return ResourceService(session)
|