Skip to content

Commit

Permalink
update invalid params test to use parameter grid instead (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
myuwono committed Feb 23, 2017
1 parent 51f1ee6 commit 3c4e6cb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/test/python/test_apiclient.py
Expand Up @@ -367,13 +367,9 @@ def test_get_identities_by_metadata_with_valid_page_parameters(
assert query_params == expected_query_params


@pytest.mark.parametrize("page, page_size", [
(0, 3),
(1, 0),
(-1, 10),
(10, -1.0),
("-50", 1)
])
@responses.activate
@pytest.mark.parametrize("page", [0, -3.0, "-5"])
@pytest.mark.parametrize("page_size", [0, "-3", 5.0])
def test_get_identities_by_metadata_with_invalid_page_parameters(
api_client, mock_signer, page, page_size):
requestor_id = "requestor_id"
Expand Down

0 comments on commit 3c4e6cb

Please sign in to comment.