Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
776 B
2
Indexable
Never
import pytest

from app.adapter.db import SQLALchemyAdapter
from app.domain.sov_item import SovItemDTO
from app.ports.db import DbAdapter, Repositories
from tests.helpers.factories import *  # type: ignore
import app.adapter.db.model as model


@pytest.fixture
def test_sov_items(db: SQLALchemyAdapter, country_factory, state_factory, county_factory):
    countries = [country_factory(), country_factory(), country_factory()]
    states = [state_factory(), state_factory(), state_factory()]
    counties = [county_factory(), county_factory(), county_factory()]

    db.session.add_all(countries)
    db.session.add_all(states)
    db.session.add_all(counties)
    db.session.commit()
    return countries


def test_sov_read(repos: Repositories, test_sov_items):
    
    pass