refactoring worker file location

This commit is contained in:
msramalho
2024-10-22 13:01:24 +01:00
parent b013e2a173
commit ec93df98fa
10 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ def test_archive_url_unauthenticated(client, test_no_auth):
test_no_auth(client.get, "/url/archive")
@patch("worker.create_archive_task.delay", return_value=TaskResult(id="123-456-789", status="PENDING", result=""))
@patch("worker.main.create_archive_task.delay", return_value=TaskResult(id="123-456-789", status="PENDING", result=""))
def test_archive_url(m1, client_with_auth):
response = client_with_auth.post("/url/archive", json={"url": "bad"})
assert response.status_code == 422