Skip to content

Commit

Permalink
document test
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Aug 7, 2024
1 parent e15d1d0 commit 61d4e40
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1225,10 +1225,16 @@ def test_post_identities__existing__transient__no_persistence(
assert response.status_code == status.HTTP_200_OK
response_json = response.json()

# identity overrides are correctly loaded
assert response_json["flags"][0]["feature_state_value"] == feature_state_value

# previously persisted traits not provided in the request
# are not marked as transient in the response
assert response_json["traits"][0]["trait_key"] == trait.trait_key
assert not response_json["traits"][0].get("transient")

# every trait provided in the request for a transient identity
# is marked as transient
assert response_json["traits"][1]["trait_key"] == trait_key
assert response_json["traits"][1]["transient"]

Expand Down

0 comments on commit 61d4e40

Please sign in to comment.