We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5634503 commit 6d93868Copy full SHA for 6d93868
tests/test_task.py
@@ -53,18 +53,18 @@ def mocked_get_path(path: str) -> Any:
53
return lambda: self.backend
54
return get_path(path)
55
56
- patch = mock.patch(
+ backend_patch = mock.patch(
57
'django_lightweight_queue.app_settings.BACKEND',
58
new='test-backend',
59
)
60
- patch.start()
61
- self.addCleanup(patch.stop)
62
+ backend_patch.start()
+ self.addCleanup(backend_patch.stop)
+ get_path_patch = mock.patch(
63
'django_lightweight_queue.utils.get_path',
64
side_effect=mocked_get_path,
65
66
67
+ get_path_patch.start()
+ self.addCleanup(get_path_patch.stop)
68
69
def tearDown(self) -> None:
70
super().tearDown()
0 commit comments