diff --git a/cg/services/illumina/post_processing/post_processing_service.py b/cg/services/illumina/post_processing/post_processing_service.py index 9a0a49eaf1..25b5ee49af 100644 --- a/cg/services/illumina/post_processing/post_processing_service.py +++ b/cg/services/illumina/post_processing/post_processing_service.py @@ -134,7 +134,9 @@ def update_samples_for_metrics( ) -> None: unique_samples_on_run: list[str] = self.get_unique_samples_from_run(sample_metrics) for sample_id in unique_samples_on_run: - self.status_db.update_sample_reads_illumina(internal_id=sample_id, sequencer_type=sequencing_run.sequencer_type) + self.status_db.update_sample_reads_illumina( + internal_id=sample_id, sequencer_type=sequencing_run.sequencer_type + ) self.status_db.update_sample_sequenced_at( sample_id, date=sequencing_run.sequencing_completed_at ) diff --git a/tests/store/crud/update/test_update.py b/tests/store/crud/update/test_update.py index 072bc738f3..6cca1df9b6 100644 --- a/tests/store/crud/update/test_update.py +++ b/tests/store/crud/update/test_update.py @@ -61,6 +61,7 @@ def test_update_sample_reads_illumina( total_reads_for_sample += sample_metric.total_reads_in_lane assert sample.reads == total_reads_for_sample + def test_update_sample_reads_illumina_fail_q30( store_with_illumina_sequencing_data: Store, selected_novaseq_x_sample_ids: list[str] ): @@ -80,6 +81,7 @@ def test_update_sample_reads_illumina_fail_q30( # THEN the total reads for the sample is updated assert sample.reads == 0 + def test_update_sample_last_sequenced_at( store_with_illumina_sequencing_data: Store, selected_novaseq_x_sample_ids: list[str],