Skip to content

Commit 3ae33a0

Browse files
committed
Removed test_utils
1 parent 24af06a commit 3ae33a0

File tree

4 files changed

+6
-38
lines changed

4 files changed

+6
-38
lines changed

tests/jobs/test_remove_missing_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import pytest
21
from unittest.mock import MagicMock
2+
import pytest
33
from src.jobs.remove_missing_files import RemoveMissingFiles
44

55
@pytest.mark.asyncio

tests/jobs/test_remove_orphans.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
2+
from unittest.mock import MagicMock
13
import pytest
24
from src.jobs.remove_orphans import RemoveOrphans
3-
from tests.jobs.test_utils import removal_job_fix
45

56
@pytest.fixture(name="queue_data")
67
def fixture_queue_data():
@@ -34,7 +35,8 @@ def fixture_queue_data():
3435
@pytest.mark.asyncio
3536
async def test_find_affected_items_returns_queue(queue_data):
3637
# Fix
37-
removal_job = removal_job_fix(RemoveOrphans, queue_data=queue_data)
38+
39+
removal_job = RemoveOrphans(arr=MagicMock(), settings=MagicMock(),job_name="test")
3840
removal_job.queue = queue_data
3941

4042
# Act

tests/jobs/test_remove_stalled.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
from unittest.mock import AsyncMock
12
import pytest
23
from src.jobs.remove_stalled import RemoveStalled
3-
from tests.jobs.test_utils import removal_job_fix
4-
from unittest.mock import AsyncMock
54

65
# Test to check if items with the specific error message are included in affected items with parameterized data
76
@pytest.mark.asyncio

tests/jobs/test_utils.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)