Skip to content

Commit f34ed3e

Browse files
Danny ShinDanny Shin
authored andcommitted
unit test fix
1 parent 8dd5f5f commit f34ed3e

File tree

1 file changed

+2
-8
lines changed
  • examples/chem-sync-local-flask/tests/unit/local_app

1 file changed

+2
-8
lines changed

examples/chem-sync-local-flask/tests/unit/local_app/test_app.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@ def client(app: Flask) -> FlaskClient:
2828
class TestApp:
2929

3030
@patch("local_app.app._enqueue_work")
31-
@patch("local_app.app.app_definition_id")
32-
@patch("local_app.app.verify")
33-
def test_app_receive_webhook(
34-
self, mock_verify, mock_app_definition_id, mock_enqueue_work, client,
35-
) -> None:
31+
def test_app_receive_webhook(self, mock_verify_app_installation, client) -> None:
3632
webhook = load_webhook_json(_TEST_FILES_PATH / "canvas_initialize_webhook.json")
3733
response = client.post("1/webhooks/canvas", json=webhook.to_dict())
3834
assert response.status_code == 200
39-
mock_verify.assert_called_once()
40-
mock_app_definition_id.assert_called_once()
41-
mock_enqueue_work.assert_called_once()
35+
mock_verify_app_installation.assert_called_once()

0 commit comments

Comments
 (0)