Skip to content

Commit

Permalink
update make test to use poetry
Browse files Browse the repository at this point in the history
remove max_page_size args from test
  • Loading branch information
mbthornton-lbl committed Jan 9, 2024
1 parent 6c26ca9 commit 65fa67e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

test:
PYTHONPATH=$(shell pwd) pytest --cov-report term --cov=nmdc_automation ./tests
poetry run pytest --cov-report term --cov=nmdc_automation ./tests
6 changes: 3 additions & 3 deletions tests/test_nmdcapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ def test_list_funcs(mock_api, requests_mock):

# TODO: ccheck the full url
requests_mock.get("http://localhost/jobs", json=mock_resp)
resp = n.list_jobs(filt="a=b", max_page_size=10)
resp = n.list_jobs(filt="a=b")
assert resp is not None

requests_mock.get("http://localhost/operations", json=[])
resp = n.list_ops(filt="a=b", max_page_size=10)
resp = n.list_ops(filt="a=b")
assert resp is not None

requests_mock.get("http://localhost/objects", json=[])
resp = n.list_objs(filt="a=b", max_page_size=10)
resp = n.list_objs(filt="a=b")
assert resp is not None


Expand Down

0 comments on commit 65fa67e

Please sign in to comment.