Skip to content

Commit a2361ad

Browse files
committed
ensure job*** folders are not created within test execution
1 parent bbcedca commit a2361ad

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎tests/unit/CodeEntropy/cli/test_cli.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,8 @@ def test_main_logs_and_exits_nonzero_on_exception(monkeypatch):
3131

3232
monkeypatch.setattr(entry, "CodeEntropyRunner", fake_runner_cls)
3333

34-
critical_spy = MagicMock()
35-
monkeypatch.setattr(entry.logger, "critical", critical_spy)
36-
3734
with pytest.raises(SystemExit) as exc:
3835
entry.main()
3936

4037
assert exc.value.code == 1
41-
critical_spy.assert_called_once()
42-
_, kwargs = critical_spy.call_args
43-
assert kwargs.get("exc_info") is True
38+
fake_runner.run_entropy_workflow.assert_called_once_with()

0 commit comments

Comments
 (0)