Skip to content

Commit

Permalink
Run test with feature_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Dec 6, 2024
1 parent 82614bb commit 6b74a68
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions api/tests/unit/features/test_unit_features_features_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,13 @@ def test_feature_get_edge_overrides_data(
)
edge_identity.save(admin_user)

feature_ids = [
distinct_identity_featurestate.feature.id,
feature.id,
]

# When
overrides_data = get_edge_overrides_data(environment)
overrides_data = get_edge_overrides_data(environment, feature_ids)

# Then
assert overrides_data[feature.id].num_identity_overrides == 1
Expand Down Expand Up @@ -290,11 +295,12 @@ def test_get_edge_overrides_data_skips_deleted_features(
)
edge_identity.save(admin_user)

feature_ids = [distinct_identity_featurestate.feature.id, feature.id]
# Now, delete one of the feature
feature.delete()

# When
overrides_data = get_edge_overrides_data(environment)
overrides_data = get_edge_overrides_data(environment, feature_ids)

# Then - we only have one identity override(for the feature that still exists)
assert len(overrides_data) == 1
Expand Down

0 comments on commit 6b74a68

Please sign in to comment.