Skip to content

Commit c4b4e25

Browse files
committed
fix: patch decorators order
1 parent 1001fed commit c4b4e25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/python/tests/test_scicat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Bearer ",
1616
],
1717
)
18-
def test_get_proposals(mock_post, mock_get, token_prefix):
18+
def test_get_proposals(mock_get, mock_post, token_prefix):
1919
address = "http://scicat"
2020
options = {
2121
"username": f"username{token_prefix}",
@@ -29,17 +29,17 @@ def test_get_proposals(mock_post, mock_get, token_prefix):
2929
scicat = SciCat(address, options=options)
3030
mock_response = Mock()
3131
mock_response.json.return_value = {"id": token}
32-
mock_get.return_value = mock_response
32+
mock_post.return_value = mock_response
3333
scicat.http_client.config = {}
3434
scicat.proposals
35-
mock_get.assert_called_with(
35+
mock_post.assert_called_with(
3636
options["login_path"],
3737
json={"username": options["username"], "password": options["password"]},
3838
headers=headers,
3939
timeout=ANY,
4040
verify=True,
4141
)
42-
mock_post.assert_called_with(
42+
mock_get.assert_called_with(
4343
f"{address}/proposals",
4444
params=None,
4545
headers={**headers, "Authorization": f"{token_prefix or ''}{token}"},

0 commit comments

Comments
 (0)