-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from Clinical-Genomics-Lund/80-update-parsing-…
…of-tbprofiler-results-to-support-version-6 Validate TbProfiler schema version.
- Loading branch information
Showing
7 changed files
with
673 additions
and
1,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
"""Test fixtures.""" | ||
|
||
from .fixtures import * | ||
from prp.models import PipelineResult | ||
from prp.models.metadata import RunMetadata, RunInformation | ||
from datetime import datetime | ||
|
||
|
||
@pytest.fixture() | ||
def simple_pipeline_result(): | ||
"""Return a basic analysis result.""" | ||
|
||
mock_run_info = RunInformation( | ||
pipeline="Jasen", | ||
version="0.0.1", | ||
commit="commit-hash", | ||
analysis_profile="", | ||
configuration_files=[], | ||
workflow_name="workflow-name", | ||
sample_name="sample-name", | ||
lims_id="limbs id", | ||
sequencing_run="run-id", | ||
sequencing_platform="sequencing plattform", | ||
sequencing_type="illumina", | ||
command="nextflow run ...", | ||
date=datetime.now(), | ||
) | ||
# add run into to metadata model | ||
metadata = RunMetadata(run=mock_run_info, databases=[]) | ||
return PipelineResult( | ||
sample_id="mock-sample-001", | ||
run_metadata=metadata, | ||
qc=[], | ||
species_prediction=[], | ||
typing_result=[], | ||
element_type_result=[], | ||
) |
Oops, something went wrong.