Skip to content

Commit

Permalink
Remove useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Jan 29, 2024
1 parent e38c4a1 commit d23d9a2
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/test_flag_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,6 @@ def test_evaluation_details_reason_should_be_a_string():
assert error_code == flag_details.error_code
assert error_message == flag_details.error_message
assert reason == flag_details.reason
assert isinstance(flag_details.reason, str)


def test_evaluation_details_reason_can_be_arbitrary_string():
# Given
flag_key = "my-flag"
flag_value = 100
variant = "1-hundred"
flag_metadata = {}
reason = "Non-standard reason"
error_code = ErrorCode.GENERAL
error_message = "message"

# When
flag_details = FlagEvaluationDetails(
flag_key,
flag_value,
variant,
flag_metadata,
reason,
error_code,
error_message,
)

# Then
assert reason == flag_details.reason


def test_evaluation_details_reason_should_be_a_string_when_set():
Expand All @@ -80,4 +54,3 @@ def test_evaluation_details_reason_should_be_a_string_when_set():

# Then
assert Reason.STATIC == flag_details.reason # noqa: SIM300
assert isinstance(flag_details.reason, str)

0 comments on commit d23d9a2

Please sign in to comment.