Skip to content

Commit

Permalink
add taxprofiler to fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
diitaz93 committed Jan 15, 2025
1 parent d17e934 commit 0a474bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/fixture_plugins/orders_fixtures/order_to_submit_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ def sarscov2_order_to_submit(cgweb_orders_dir: Path) -> dict:
)


@pytest.fixture(scope="session")
def taxprofiler_order_to_submit(cgweb_orders_dir: Path) -> dict:
"""Load an example Taxprofiler order."""
return ReadFile.get_content_from_file(
file_format=FileFormat.JSON, file_path=Path(cgweb_orders_dir, "taxprofiler.json")
)


@pytest.fixture(scope="session")
def tomte_order_to_submit(cgweb_orders_dir: Path) -> dict:
"""Load an example TOMTE order."""
Expand All @@ -142,6 +150,7 @@ def all_orders_to_submit(
rml_order_to_submit: dict,
rnafusion_order_to_submit: dict,
sarscov2_order_to_submit: dict,
taxprofiler_order_to_submit: dict,
tomte_order_to_submit: dict,
) -> dict[OrderType, Order]:
"""Returns a dict of parsed order for each order type."""
Expand All @@ -160,4 +169,6 @@ def all_orders_to_submit(
OrderType.RML: RmlOrder.model_validate(rml_order_to_submit),
OrderType.RNAFUSION: RnaFusionOrder.model_validate(rnafusion_order_to_submit),
OrderType.SARS_COV_2: MutantOrder.model_validate(sarscov2_order_to_submit),
OrderType.TAXPROFILER: MutantOrder.model_validate(taxprofiler_order_to_submit),
OrderType.TOMTE: MutantOrder.model_validate(tomte_order_to_submit),
}

0 comments on commit 0a474bb

Please sign in to comment.