feat(registries): add SME and budget imports and fix source API workflows
All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 9m37s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 4m18s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy customer main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 1m48s

This commit is contained in:
Aleksandr Meshchryakov
2026-09-13 23:13:47 +02:00
parent c863563851
commit 49cbfd265c
50 changed files with 5021 additions and 452 deletions

View File

@@ -275,7 +275,7 @@ class SourceCardsApiTestCase(APITestCase):
with patch(
"apps.parsers.tasks.parse_registry_enrichment_sources.apply_async",
return_value=SimpleNamespace(id="task-procurements"),
):
) as task_mock:
response = self.client.post(
reverse(
"api_v1:sources:source-cards-refresh",
@@ -286,7 +286,9 @@ class SourceCardsApiTestCase(APITestCase):
)
self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED)
self.assertEqual(response.data["task_id"], "task-procurements")
self.assertEqual(
response.data["task_id"], task_mock.call_args.kwargs["task_id"]
)
def test_refresh_forbidden_for_regular_user(self):
response = self.client.post(