From 0687f711b8066f9c6662691880037b09e10898a4 Mon Sep 17 00:00:00 2001 From: Matias Bordese Date: Mon, 6 Nov 2023 17:44:07 -0300 Subject: [PATCH] Fix assert_called_once usage in tests (#3284) https://github.com/grafana/oncall/pull/3274#discussion_r1383891837 --- engine/engine/tests/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/engine/tests/test_views.py b/engine/engine/tests/test_views.py index d8e519b0..b7332742 100644 --- a/engine/engine/tests/test_views.py +++ b/engine/engine/tests/test_views.py @@ -15,7 +15,7 @@ def test_detached_integrations_startupprobe_populates_integrations_cache(): response = client.get("/startupprobe/") assert response.status_code == status.HTTP_200_OK - mock_update_cache.assert_called_once + mock_update_cache.assert_called_once() def test_startupprobe_populates_integrations_cache(): @@ -27,4 +27,4 @@ def test_startupprobe_populates_integrations_cache(): response = client.get("/startupprobe/") assert response.status_code == status.HTTP_200_OK - mock_update_cache.assert_called_once + mock_update_cache.assert_called_once()