Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Oct 3, 2024
1 parent 602b14f commit 102f223
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion taca/element/Element_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def find_lims_zip(self) -> str | None:
lims_zip_src_path = glob_results[0]
return lims_zip_src_path

def copy_manifests(self, zip_src_path) -> bool:
def copy_manifests(self, zip_src_path):
"""Fetch the LIMS-generated run manifests from ngi-nas-ns and unzip them into a run subdir."""
# Make a run subdir named after the zip file and extract manifests there

Expand Down
24 changes: 0 additions & 24 deletions tests/element/test_Element_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,30 +158,6 @@ def test_get_demultiplexing_status(

assert run.get_demultiplexing_status() == p["expected"]

@pytest.mark.skip(reason="Not implemented yet")
@pytest.mark.parametrize(
"p",
[
{"run_finished": True, "expected": True},
{"run_finished": False, "expected": False},
],
ids=["exists", "does not exist"],
)
def test_manifest_exists(
self, mock_db: mock.Mock, create_dirs: pytest.fixture, p: pytest.fixture
):
tmp: tempfile.TemporaryDirectory = create_dirs

run = to_test.Run(
create_element_run_dir(
tmp,
run_finished=p["run_finished"],
),
get_config(tmp),
)

assert run.manifest_exists() == p["expected"]

@pytest.mark.skip(reason="Not implemented yet")
def test_generate_demux_command(self, mock_db):
pass
Expand Down

0 comments on commit 102f223

Please sign in to comment.