Skip to content

Commit

Permalink
test: correct query params on tests #268
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jan 31, 2022
1 parent 12bdde5 commit 2fed560
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions test/search_api/endpoints/test_get_dataset_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def test_valid_get_dataset_files_endpoint(
[
pytest.param("0-8401-1070-7", '{"where": []}', 400, id="Bad where filter"),
pytest.param("0-8401-1070-7", '{"limit": -1}', 400, id="Bad limit filter"),
pytest.param(
"0-8401-1070-7", '{"limit": -100}', 400, id="Bad skip filter",
),
pytest.param("0-8401-1070-7", '{"skip": -100}', 400, id="Bad skip filter"),
pytest.param(
"0-8401-1070-7", '{"include": ""}', 400, id="Bad include filter",
),
Expand Down
4 changes: 1 addition & 3 deletions test/search_api/endpoints/test_get_entity_by_pid.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,7 @@ def test_valid_get_by_pid_endpoint(
[
pytest.param("0-8401-1070-7", '{"where": []}', 400, id="Bad where filter"),
pytest.param("0-8401-1070-7", '{"limit": -1}', 400, id="Bad limit filter"),
pytest.param(
"0-8401-1070-7", '{"limit": -100}', 400, id="Bad skip filter",
),
pytest.param("0-8401-1070-7", '{"skip": -100}', 400, id="Bad skip filter"),
pytest.param(
"0-8401-1070-7", '{"include": ""}', 400, id="Bad include filter",
),
Expand Down
2 changes: 1 addition & 1 deletion test/search_api/endpoints/test_search_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def test_valid_search_endpoint(
[
pytest.param('{"where": []}', 400, id="Bad where filter"),
pytest.param('{"limit": -1}', 400, id="Bad limit filter"),
pytest.param('{"limit": -100}', 400, id="Bad skip filter"),
pytest.param('{"skip": -100}', 400, id="Bad skip filter"),
pytest.param('{"include": ""}', 400, id="Bad include filter"),
],
)
Expand Down

0 comments on commit 2fed560

Please sign in to comment.