Skip to content

Commit

Permalink
fixup! fix(sentry-FLAGSMITH-API-4FY): resolve metadata segment n+1
Browse files Browse the repository at this point in the history
  • Loading branch information
gagantrivedi committed Jun 3, 2024
1 parent 71e4c6c commit 14eeaa6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions api/tests/unit/segments/test_unit_segments_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from django.contrib.contenttypes.models import ContentType
from django.urls import reverse
from flag_engine.segments.constants import EQUAL
from pytest_django import DjangoAssertNumQueries
from pytest_django.fixtures import SettingsWrapper
from pytest_lazyfixture import lazy_fixture
from rest_framework import status
Expand Down Expand Up @@ -343,11 +344,11 @@ def test_get_segment_by_uuid(client, project, segment):
],
)
def test_list_segments(
django_assert_num_queries,
project,
client,
num_queries,
required_a_segment_metadata_field,
django_assert_num_queries: DjangoAssertNumQueries,
project: Project,
client: APIClient,
num_queries: int,
required_a_segment_metadata_field: MetadataModelField,
):
# Given
num_segments = 5
Expand Down

0 comments on commit 14eeaa6

Please sign in to comment.