Skip to content
Snippets Groups Projects
Verified Commit f7b50e3e authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

fix test since moving self.task_id definition to __init__

parent 50313d7f
No related branches found
No related tags found
1 merge request!217Find local model directory method
Pipeline #79606 passed
......@@ -237,9 +237,9 @@ def mock_base_worker_with_cache(mocker, monkeypatch, mock_worker_run_api):
"""Build a BaseWorker using SQLite cache, also mocking a PONOS_TASK"""
monkeypatch.setattr(sys, "argv", ["worker"])
monkeypatch.setenv("PONOS_TASK", "my_task")
worker = BaseWorker(support_cache=True)
worker.setup_api_client()
monkeypatch.setenv("PONOS_TASK", "my_task")
return worker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment