From b001ba32d32fec8b75fc0ded717b6383128b9d61 Mon Sep 17 00:00:00 2001 From: Sebastian Diaz Date: Mon, 20 Jan 2025 12:23:40 +0100 Subject: [PATCH] replace literal by fixture --- tests/fixture_plugins/orders_fixtures/store_fixtures.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/fixture_plugins/orders_fixtures/store_fixtures.py b/tests/fixture_plugins/orders_fixtures/store_fixtures.py index 652aa03dfd..2917f824fb 100644 --- a/tests/fixture_plugins/orders_fixtures/store_fixtures.py +++ b/tests/fixture_plugins/orders_fixtures/store_fixtures.py @@ -69,7 +69,9 @@ def mip_dna_submit_store( @pytest.fixture -def store_with_all_test_applications(store: Store, helpers: StoreHelpers) -> Store: +def store_with_all_test_applications( + store: Store, helpers: StoreHelpers, customer_id: str +) -> Store: app_tags: dict[str, list[OrderType]] = { "PANKTTR100": [OrderType.BALSAMIC], "WGSPCFC030": [OrderType.FASTQ, OrderType.MIP_DNA], @@ -92,7 +94,7 @@ def store_with_all_test_applications(store: Store, helpers: StoreHelpers) -> Sto store=store, application_tag=tag ) application_version.application.order_types = orders - customer: Customer = helpers.ensure_customer(store=store, customer_id="cust000") + customer: Customer = helpers.ensure_customer(store=store, customer_id=customer_id) helpers.ensure_user(store=store, customer=customer) helpers.ensure_panel(store=store, panel_abbreviation="AID") helpers.ensure_panel(store=store, panel_abbreviation="Ataxi")