Skip to content

Commit

Permalink
Update project check test to actually check outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jan 14, 2024
1 parent e245ee0 commit 4c24f27
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/integration/test_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ def test_project_init(random_project_name):
assert len(project.workers) == 2


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

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


@pytest.mark.parametrize(
Expand Down

0 comments on commit 4c24f27

Please sign in to comment.