Skip to content

Commit

Permalink
Run black.
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrizsavinhas committed Sep 3, 2024
1 parent 93574de commit a5e7b78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 2 additions & 0 deletions tests/store/crud/update/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
):
Expand All @@ -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],
Expand Down

0 comments on commit a5e7b78

Please sign in to comment.