feat: migrate parser data to source records
This commit is contained in:
@@ -6,6 +6,7 @@ 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.source_backfill import OrganizationSourceBackfillService
|
||||
from rest_framework import status
|
||||
from rest_framework.test import APITestCase
|
||||
|
||||
@@ -89,6 +90,7 @@ class SourcesApiE2ETest(APITestCase):
|
||||
user_id=self.user.id,
|
||||
meta={"source": ParserLoadLog.Source.INSPECTIONS},
|
||||
)
|
||||
OrganizationSourceBackfillService.backfill()
|
||||
|
||||
self.client.force_authenticate(self.user)
|
||||
cards_response = self.client.get(reverse("api_v1:sources:source-cards-list"))
|
||||
|
||||
Reference in New Issue
Block a user