diff --git a/tests/integration/test_slurm.py b/tests/integration/test_slurm.py index ab833227..dc64bdb4 100644 --- a/tests/integration/test_slurm.py +++ b/tests/integration/test_slurm.py @@ -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(