Private
Public Access
manaul correction attempts
This commit is contained in:
@@ -104,7 +104,7 @@ def test_token_reduction_logging(capsys):
|
||||
with pytest.MonkeyPatch().context() as m:
|
||||
m.setattr("builtins.open", lambda f, *args, **kwargs: type('obj', (object,), {'read': lambda s: code, '__enter__': lambda s: s, '__exit__': lambda s, *a: None})())
|
||||
m.setattr("pathlib.Path.exists", lambda s: True)
|
||||
m.setattr("src.ai_client.send", lambda **kwargs: "DONE")
|
||||
m.setattr("src.ai_client.send_result", lambda **kwargs: "DONE")
|
||||
|
||||
run_worker_lifecycle(ticket, context, context_files=["test.py"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user