mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Apply suggestions from code review
CURA-7959 Co-authored-by: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
This commit is contained in:
parent
6dd62f9024
commit
5700e44914
3 changed files with 8 additions and 9 deletions
|
@ -45,7 +45,7 @@ def test_getProjectsFirstPage(api_client):
|
|||
args = http_manager.get.call_args_list[0]
|
||||
|
||||
# Ensure that it's called with the right limit
|
||||
assert args[0][0] == 'https://api.ultimaker.com/cura/v1/projects?limit=20'
|
||||
assert args[0][0] == "https://api.ultimaker.com/cura/v1/projects?limit=20"
|
||||
|
||||
# Change the limit & try again
|
||||
http_manager.get.reset_mock()
|
||||
|
@ -54,7 +54,7 @@ def test_getProjectsFirstPage(api_client):
|
|||
args = http_manager.get.call_args_list[0]
|
||||
|
||||
# Ensure that it's called with the right limit
|
||||
assert args[0][0] == 'https://api.ultimaker.com/cura/v1/projects?limit=80'
|
||||
assert args[0][0] == "https://api.ultimaker.com/cura/v1/projects?limit=80"
|
||||
|
||||
|
||||
def test_getMoreProjects_noNewProjects(api_client):
|
||||
|
@ -84,4 +84,3 @@ def test_getMoreProjects_hasNewProjects(api_client):
|
|||
def test_clear(api_client):
|
||||
api_client.clear()
|
||||
api_client._projects_pagination_mgr.reset.assert_called_once()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue