Skip to content

Commit

Permalink
fix conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Apr 8, 2024
1 parent 1239a10 commit 16a9082
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,35 @@ def test_analysis(sex_male, timestamp_now: datetime, test_sample_id: str) -> Ana
)


@pytest.fixture
def base_store(
store: Store,
helpers: StoreHelpers,
test_snp: SNP,
test_genotype: Genotype,
test_plate: Plate,
test_user: User,
test_sample: Sample,
test_analysis: Analysis,
):
helpers.ensure_snp(store=store, snp=test_snp)
helpers.ensure_genotype(store=store, genotype=test_genotype)
helpers.ensure_plate(
store=store,
plate=test_plate,
)
helpers.ensure_sample(store=store, sample=test_sample)
helpers.ensure_analysis(
store=store,
analysis=test_analysis,
)
helpers.ensure_user(
store=store,
user=test_user,
)
return store


@pytest.fixture(name="fixtures_dir")
def fixture_fixtures_dir() -> Path:
"""Return the path to fixtures dir."""
Expand Down

0 comments on commit 16a9082

Please sign in to comment.