Skip to content

Commit

Permalink
feat: fix aggregated collecor test
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Feb 27, 2025
1 parent 67144c1 commit 562353e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import patch, MagicMock
from django.test import TestCase
from django.conf import settings
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
from eox_core.api.data.aggregated_collector.utils import execute_query
Expand All @@ -10,7 +11,7 @@
class AggregatedCollectorTests(TestCase):
def setUp(self):
self.client = APIClient()
self.url = "/eox-core/data-api/v1/aggregated-collector/"
self.url = reverse("eox_core.api.data.v1.urls:eox-data-api-collector-v1:aggregated_collector")
settings.AGGREGATED_DATA_COLLECTOR_API_ENABLED = True
settings.EOX_CORE_AGGREGATED_COLLECT_DESTINATION_URL = "http://mock-api.com"
settings.EOX_CORE_AGGREGATED_COLLECT_TOKEN_URL = "http://mock-token.com"
Expand Down

0 comments on commit 562353e

Please sign in to comment.