Fix assert_called_once usage in tests (#3284)
https://github.com/grafana/oncall/pull/3274#discussion_r1383891837
This commit is contained in:
parent
c6f4c2ab46
commit
0687f711b8
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue