Skip to content

Commit

Permalink
test: update conformance tests to fit the new format (#96)
Browse files Browse the repository at this point in the history
* test: update conformance tests to fit the new format

* black reformat
  • Loading branch information
Gurov Ilya committed Apr 2, 2020
1 parent ef98a3a commit 44060de
Show file tree
Hide file tree
Showing 3 changed files with 401 additions and 395 deletions.
2 changes: 1 addition & 1 deletion tests/unit/test__signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")["signingV4Tests"]
_CLIENT_TESTS = [test for test in _CONFORMANCE_TESTS if "bucket" not in test]
_BUCKET_TESTS = [
test for test in _CONFORMANCE_TESTS if "bucket" in test and not test.get("object")
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
from . import _read_local_json

_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")[
"postPolicyV4Tests"
]
_POST_POLICY_TESTS = [test for test in _CONFORMANCE_TESTS if "policyInput" in test]
_DUMMY_CREDENTIALS = Credentials.from_service_account_info(_SERVICE_ACCOUNT_JSON)

Expand Down
Loading

0 comments on commit 44060de

Please sign in to comment.