Skip to content

Commit

Permalink
replace entry point test for smoketest
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Jan 10, 2024
1 parent 406db3e commit 07f9c8a
Showing 1 changed file with 4 additions and 43 deletions.
47 changes: 4 additions & 43 deletions tests/cellfinder_core/test_integration/test_cellfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,53 +52,14 @@ def test_main_w_inputs(
assert Path(cfg._detected_cells_path).is_file()


@pytest.mark.skip(reason="monkeypatch not passed")
def test_entry_point():
def test_entry_point_help():
"""
Test running the cellfinder workflow via the predefined entry point
with no inputs
"""

# define CLI input
subprocess_input = ["cellfinder-workflow"]

# run workflow
subprocess_output = subprocess.run(
subprocess_input,
)

# check returncode
assert subprocess_output.returncode == 0


@pytest.mark.skip()
@pytest.mark.parametrize(
"input_config",
[
"config_local_json",
"config_GIN_json",
],
)
def test_entry_point_w_inputs(
input_config: Optional[str],
request: pytest.FixtureRequest,
):
"""
Test running the cellfinder workflow via the predefined entry point
with inputs
Parameters
----------
input_config : Optional[str]
Path to input config json file
request : pytest.FixtureRequest
Pytest fixture to enable requesting fixtures by name
Smoke test the cellfinder workflow entry point by checking
help is printed out successfully
"""

# define CLI input
subprocess_input = ["cellfinder-workflow"]
subprocess_input.append("--config")
subprocess_input.append(str(request.getfixturevalue(input_config)))
subprocess_input = ["cellfinder-workflow", "--help"]

# run workflow
subprocess_output = subprocess.run(
Expand Down

0 comments on commit 07f9c8a

Please sign in to comment.