feat: add digest-gated internal main deployment
Some checks failed
Mostovik Backend CI/CD / Tests and lint (push) Failing after 5s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Has been skipped
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy customer main (push) Has been skipped

This commit is contained in:
2026-08-27 12:49:43 +03:00
parent 7a8e5765ad
commit c884b4e3fd
11 changed files with 728 additions and 648 deletions

View File

@@ -111,6 +111,21 @@ class CeleryModuleTest(SimpleTestCase):
apply_async_mock.assert_not_called()
def test_startup_refresh_skips_when_disabled(self):
with patch.dict(
os.environ, {"DJANGO_SETTINGS_MODULE": "settings.test"}, clear=True
), patch.object(sys, "argv", ["python", "manage.py", "shell"]):
module = _load_module("isolated_core_celery_startup_disabled")
with patch.object(
module,
"settings",
SimpleNamespace(CELERY_STARTUP_REFRESH_ENABLED=False),
), patch.object(module.cache, "add") as add_mock:
module._queue_startup_sources_refresh()
add_mock.assert_not_called()
def test_debug_task_prints_request(self):
with patch.dict(
os.environ, {"DJANGO_SETTINGS_MODULE": "settings.test"}, clear=True