Skip to content

Commit

Permalink
Made correct sample sheet name a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
diitaz93 committed Jan 10, 2024
1 parent bbfad62 commit 828180e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions cg/constants/demultiplexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class DemultiplexingDirsAndFiles(StrEnum):
RUN_PARAMETERS_PASCAL_CASE: str = "RunParameters.xml"
RUN_PARAMETERS_CAMEL_CASE: str = "runParameters.xml"
SAMPLE_SHEET_FILE_NAME: str = "SampleSheet.csv"
CORRECT_SAMPLE_SHEET: str = "CorrectSampleSheet.csv"
UNALIGNED_DIR_NAME: str = "Unaligned"
BCL2FASTQ_TILE_DIR_PATTERN: str = r"l\dt\d{2}"
QUEUED_FOR_POST_PROCESSING: str = "post_processing_queued.txt"
Expand Down
10 changes: 7 additions & 3 deletions tests/fixture_plugins/demultiplex_fixtures/path_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ def novaseq_6000_post_1_5_kits_flow_cell(tmp_flow_cells_directory: Path) -> Path
def novaseq_6000_post_1_5_kits_correct_sample_sheet(
novaseq_6000_post_1_5_kits_flow_cell: Path,
) -> Path:
return Path(novaseq_6000_post_1_5_kits_flow_cell, "CorrectSampleSheet.csv")
return Path(
novaseq_6000_post_1_5_kits_flow_cell, DemultiplexingDirsAndFiles.CORRECT_SAMPLE_SHEET
)


@pytest.fixture
Expand All @@ -227,7 +229,9 @@ def novaseq_6000_pre_1_5_kits_flow_cell(tmp_flow_cells_directory: Path) -> Path:
def novaseq_6000_pre_1_5_kits_correct_sample_sheet(
novaseq_6000_pre_1_5_kits_flow_cell: Path,
) -> Path:
return Path(novaseq_6000_pre_1_5_kits_flow_cell, "CorrectSampleSheet.csv")
return Path(
novaseq_6000_pre_1_5_kits_flow_cell, DemultiplexingDirsAndFiles.CORRECT_SAMPLE_SHEET
)


@pytest.fixture
Expand All @@ -242,7 +246,7 @@ def novaseq_x_flow_cell_directory(tmp_flow_cells_directory: Path) -> Path:

@pytest.fixture
def novaseq_x_correct_sample_sheet(novaseq_x_flow_cell_directory: Path) -> Path:
return Path(novaseq_x_flow_cell_directory, "CorrectSampleSheet.csv")
return Path(novaseq_x_flow_cell_directory, DemultiplexingDirsAndFiles.CORRECT_SAMPLE_SHEET)


@pytest.fixture
Expand Down

0 comments on commit 828180e

Please sign in to comment.