Skip to content

Commit

Permalink
Remove a bit more machinery
Browse files Browse the repository at this point in the history
  • Loading branch information
dkfellows committed Sep 28, 2023
1 parent 68c0330 commit 4f61f10
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/scripts/test_alloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@ def mock_working_job(monkeypatch):
return job


@pytest.fixture
def mock_mc(monkeypatch):
mc = Mock(return_value=Mock())
import spalloc_client.scripts.alloc
monkeypatch.setattr(spalloc_client.scripts.alloc, "MachineController", mc)
return mc


def test_write_ips_to_file_empty(filename):
write_ips_to_csv({}, filename)

Expand Down Expand Up @@ -303,7 +295,7 @@ def test_timeout_args(basic_config_file, mock_job, basic_job_kwargs):


def test_default_info(capsys, basic_config_file, mock_working_job, mock_input,
mock_mc, no_colour):
no_colour):
assert main([]) == 0

out, err = capsys.readouterr()
Expand Down

0 comments on commit 4f61f10

Please sign in to comment.