From 8299feeb75a42bc8d6e9d19596af9b929fd90500 Mon Sep 17 00:00:00 2001 From: Novak Zaballa Date: Thu, 9 May 2024 19:54:44 -0400 Subject: [PATCH] Correct test --- ...t_unit_feature_external_resources_views.py | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/api/tests/unit/features/test_unit_feature_external_resources_views.py b/api/tests/unit/features/test_unit_feature_external_resources_views.py index 34660ca658de..7e1f9647f57d 100644 --- a/api/tests/unit/features/test_unit_feature_external_resources_views.py +++ b/api/tests/unit/features/test_unit_feature_external_resources_views.py @@ -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], + )