Fix assert_called_once usage in tests (#3284)

https://github.com/grafana/oncall/pull/3274#discussion_r1383891837
This commit is contained in:
Matias Bordese 2023-11-06 17:44:07 -03:00 committed by GitHub
parent c6f4c2ab46
commit 0687f711b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()