Skip to content

Commit

Permalink
Switches VCRPy Serializer from yaml to json
Browse files Browse the repository at this point in the history
Changed the serializer setting in VCRPy from YAML to JSON format. Added decoding of compressed responses and updated cassette file format to JSON for integration tests.
  • Loading branch information
isFakeAccount committed Jun 16, 2024
1 parent 215822c commit fd50771
Show file tree
Hide file tree
Showing 141 changed files with 10,903 additions and 67,487 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ def filter_response_information(response: Response) -> Response:


my_vcr = vcr.VCR(
serializer="yaml",
serializer="json",
cassette_library_dir="tests/integration_tests/integration_test_psnawp_api/cassettes",
record_mode=RecordMode.ONCE,
match_on=["uri", "method"],
filter_headers=["Authorization", "Cookie", "Set-Cookie", "Location"],
filter_query_parameters=["cid"],
filter_post_data_parameters=["refresh_token", "code"],
decode_compressed_response=True,
before_record_response=filter_response_information,
)

Large diffs are not rendered by default.

Loading

0 comments on commit fd50771

Please sign in to comment.