mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
refactor: use explicit runtime facade getters
This commit is contained in:
@@ -825,7 +825,7 @@ class SubscribeEndpointTest(TestCase):
|
||||
|
||||
for endpoint in [refresh_subscribes, check_subscribes]:
|
||||
with self.subTest(endpoint=endpoint.__name__), patch(
|
||||
"app.api.endpoints.subscribe.Scheduler"
|
||||
"app.api.endpoints.subscribe.get_scheduler"
|
||||
) as scheduler:
|
||||
response = endpoint(current_user=regular_user)
|
||||
|
||||
@@ -838,7 +838,7 @@ class SubscribeEndpointTest(TestCase):
|
||||
(check_subscribes, "subscribe_tmdb"),
|
||||
]:
|
||||
with self.subTest(endpoint=endpoint.__name__), patch(
|
||||
"app.api.endpoints.subscribe.Scheduler"
|
||||
"app.api.endpoints.subscribe.get_scheduler"
|
||||
) as scheduler:
|
||||
response = endpoint(current_user=superuser)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user