Skip to content

Commit eea586b

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

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
@@ -18,18 +18,20 @@
1818
from app_analytics.models import FeatureEvaluationRaw
1919
from environments.identities.models import Identity
2020
from environments.models import Environment
21-
from projects.models import Project
2221
from features.models import Feature
2322
from organisations.models import (
2423
Organisation,
2524
OrganisationSubscriptionInformationCache,
2625
)
26+
from projects.models import Project
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)