Skip to content

Commit

Permalink
[tests] fix monkeypatch for signal_oarexec
Browse files Browse the repository at this point in the history
  • Loading branch information
adfaure committed Dec 5, 2024
1 parent f8ce9a9 commit cd029b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def monkeypatch_tools(request, monkeypatch):
"fork_and_feed_stdin",
lambda cmd, timeout_cmd, nodes: assign_node_list(nodes),
)
monkeypatch.setattr(oar.lib.tools, "signal_oarexec", lambda *x: 0)
monkeypatch.setattr(oar.lib.tools, "signal_oarexec", lambda *x, user_signal: 0)


@pytest.fixture(scope="function")
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_oardel.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def minimal_db_initialization(request, setup_config):
@pytest.fixture(scope="function", autouse=True)
def monkeypatch_tools(request, monkeypatch):
monkeypatch.setattr(oar.lib.tools, "notify_almighty", lambda x: True)
monkeypatch.setattr(oar.lib.tools, "signal_oarexec", lambda *x: 0)
monkeypatch.setattr(oar.lib.tools, "signal_oarexec", lambda *x, user_signal: 0)


def test_version(minimal_db_initialization, setup_config):
Expand Down

0 comments on commit cd029b3

Please sign in to comment.