diff --git a/tests/unit/test_viral_video_ws.py b/tests/unit/test_viral_video_ws.py index 74b2c519b..9d8594762 100644 --- a/tests/unit/test_viral_video_ws.py +++ b/tests/unit/test_viral_video_ws.py @@ -55,9 +55,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):