feat: restore registry procurement collection
This commit is contained in:
@@ -6,7 +6,6 @@ from unittest.mock import patch
|
||||
from apps.core.models import BackgroundJob, JobStatus
|
||||
from apps.parsers.models import FinancialReport, FinancialReportLine, ParserLoadLog
|
||||
from django.urls import reverse
|
||||
from organizations.models import Organization
|
||||
from organizations.source_backfill import OrganizationSourceBackfillService
|
||||
from rest_framework import status
|
||||
from rest_framework.test import APITestCase
|
||||
@@ -206,7 +205,7 @@ class SourcesApiE2ETest(APITestCase):
|
||||
)
|
||||
|
||||
with patch(
|
||||
"apps.parsers.tasks.sync_procurements.apply_async",
|
||||
"apps.parsers.tasks.parse_registry_enrichment_sources.apply_async",
|
||||
return_value=SimpleNamespace(id="task-procurements"),
|
||||
):
|
||||
procurements_response = self.client.post(
|
||||
@@ -241,7 +240,7 @@ class SourcesApiE2ETest(APITestCase):
|
||||
self.assertTrue(
|
||||
BackgroundJob.objects.filter(
|
||||
task_id="task-procurements",
|
||||
task_name="apps.parsers.tasks.sync_procurements",
|
||||
task_name="apps.parsers.tasks.parse_registry_enrichment_sources",
|
||||
user_id=self.admin.id,
|
||||
).exists()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user