Skip to content

Commit 27d218d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c3bbcff commit 27d218d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/tests/unit/app_analytics/test_unit_app_analytics_views.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from datetime import date, timedelta
33

44
import pytest
5+
from api.integrations.launch_darkly.types import Project
56
from django.urls import reverse
67
from django.utils import timezone
78
from pytest_django.fixtures import SettingsWrapper
@@ -18,18 +19,19 @@
1819
from app_analytics.models import FeatureEvaluationRaw
1920
from environments.identities.models import Identity
2021
from environments.models import Environment
21-
from api.integrations.launch_darkly.types import Project
2222
from features.models import Feature
2323
from organisations.models import (
2424
Organisation,
2525
OrganisationSubscriptionInformationCache,
2626
)
2727
from tests.types import EnableFeaturesFixture
2828

29+
2930
@pytest.fixture()
3031
def feature_with_dots(project: Project) -> Feature:
3132
return Feature.objects.create(name="feature.with.dots", project=project) # type: ignore[no-any-return]
3233

34+
3335
def test_sdk_analytics_ignores_bad_data(
3436
mocker: MockerFixture,
3537
environment: Environment,
@@ -62,6 +64,7 @@ def test_sdk_analytics_ignores_bad_data(
6264
labels={},
6365
)
6466

67+
6568
def test_sdk_analytics_ignores_feature_data_with_dots(
6669
mocker: MockerFixture,
6770
environment: Environment,
@@ -71,7 +74,7 @@ def test_sdk_analytics_ignores_feature_data_with_dots(
7174
# Given
7275
api_client.credentials(HTTP_X_ENVIRONMENT_KEY=environment.api_key)
7376

74-
data = { feature_with_dots.name: 20 }
77+
data = {feature_with_dots.name: 20}
7578
mocked_feature_eval_cache = mocker.patch(
7679
"app_analytics.views.feature_evaluation_cache"
7780
)

0 commit comments

Comments
 (0)