Skip to content

Commit

Permalink
feat: add aggregated collecor test
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Feb 27, 2025
1 parent 77ca34c commit 45fcc36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eox_core/api/data/aggregated_collector/v1/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
from unittest.mock import patch
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.tasks import generate_report
Expand All @@ -11,13 +12,13 @@ def api_client():

@pytest.fixture
def api_url():
return "/eox-core/data-api/v1/aggregated-collector/"
return reverse('eox-data-api:eox-data-api-collector-v1:aggregated_collector')

@pytest.mark.django_db
class TestAggregatedCollectorView:

@pytest.fixture(autouse=True)
def setup(settings):
def setup(self, settings):
"""Set default values for settings before each test."""
settings.AGGREGATED_DATA_COLLECTOR_API_ENABLED = True
settings.EOX_CORE_AGGREGATED_COLLECT_DESTINATION_URL = "https://example.com/destination"
Expand Down

0 comments on commit 45fcc36

Please sign in to comment.