Skip to content

Commit

Permalink
adapt integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetretto committed Mar 19, 2024
1 parent 1f7947f commit 0a9dbdb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/integration/test_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,15 @@ def test_paramiko_ssh_connection(job_controller, slurm_ssh_port):


def test_project_check(job_controller, capsys):
from jobflow_remote.cli.project import check
from jobflow_remote.testing.cli import run_check_cli

check(print_errors=True)
captured = capsys.readouterr()
assert not captured.err
expected = [
"✓ Worker test_local_worker",
"✓ Worker test_remote_worker",
"✓ Jobstore",
"✓ Queue store",
]
for line in expected:
assert line in captured.out
run_check_cli(["project", "check"], required_out=expected)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 0a9dbdb

Please sign in to comment.