diff --git a/tests/unit/test_viral_video_ws.py b/tests/unit/test_viral_video_ws.py index 4662807f2..8cc33f808 100644 --- a/tests/unit/test_viral_video_ws.py +++ b/tests/unit/test_viral_video_ws.py @@ -53,9 +53,9 @@ for _mod in list(sys.modules.keys()): if _mod.startswith("app.") or _mod.startswith("worker_app."): del sys.modules[_mod] +import app.db as _app_db # noqa: E402 from app.api.routes import viral_video as vv_module # noqa: E402 from worker_app.tasks import viral_video as worker_vv # noqa: E402 -import app.db as _app_db # noqa: E402 def _make_job(**kwargs):