Skip to content

Commit

Permalink
Correct test
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa committed May 9, 2024
1 parent c470f19 commit 8299fee
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,20 +409,20 @@ def test_create_github_comment_on_feature_state_updated( # noqa: C901
},
timeout=10,
)
if event_type == "update":
mock_generate_data.assert_called_with(
github_configuration=github_configuration,
feature_id=feature.id,
feature_name=feature.name,
type=WebhookEventType.FLAG_UPDATED.value,
feature_states=[feature_state],
)

elif event_type == "update":
mock_generate_data.assert_called_with(
github_configuration=github_configuration,
feature_id=feature.id,
feature_name=feature.name,
type=WebhookEventType.FLAG_UPDATED.value,
feature_states=[feature_state],
)
if event_type == "update":
mock_generate_data.assert_called_with(
github_configuration=github_configuration,
feature_id=feature.id,
feature_name=feature.name,
type=WebhookEventType.FLAG_UPDATED.value,
feature_states=[feature_state],
)

elif event_type == "delete":
mock_generate_data.assert_called_with(
github_configuration=github_configuration,
feature_id=feature.id,
feature_name=feature.name,
type=WebhookEventType.FLAG_DELETED.value,
feature_states=[feature_state],
)

0 comments on commit 8299fee

Please sign in to comment.