Skip to content

Commit 2378db2

Browse files
committed
change assert_called_once to assert_called_once_with
1 parent cc7a4ff commit 2378db2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/integration/synapseclient/core/test_version_check.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import httpx
44
from pytest_mock import MockerFixture
55

6-
from synapseclient.core.version_check import _get_version_info_from_pypi, version_check
6+
from synapseclient.core.version_check import (
7+
_PYPI_JSON_URL,
8+
_get_version_info_from_pypi,
9+
version_check,
10+
)
711

812

913
async def test_version_check(mocker: MockerFixture):
@@ -17,7 +21,7 @@ async def test_version_check(mocker: MockerFixture):
1721
# Assert httpx.get called when running version_check
1822
spy = mocker.spy(httpx, "get")
1923
version_check()
20-
spy.assert_called_once()
24+
spy.assert_called_once_with(_PYPI_JSON_URL)
2125

2226

2327
def test_get_version_info_from_pypi():

0 commit comments

Comments
 (0)