kevin1024 / vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing
MIT License
2.72k stars 388 forks source link

Make `json.loads` of Python >=3.6 decode bytes by itself #738

Closed hartwork closed 1 year ago

hartwork commented 1 year ago

Quoting https://docs.python.org/3/library/json.html#json.loads :

Changed in version 3.6: s can now be of type bytes or bytearray. The input encoding should be UTF-8, UTF-16 or UTF-32.

codecov-commenter commented 1 year ago

Codecov Report

Merging #738 (05f61ea) into master (4f70152) will increase coverage by 0.11%. The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master     #738      +/-   ##
==========================================
+ Coverage   90.52%   90.63%   +0.11%     
==========================================
  Files          28       28              
  Lines        1794     1794              
  Branches      322      322              
==========================================
+ Hits         1624     1626       +2     
+ Misses        135      133       -2     
  Partials       35       35              
Impacted Files Coverage Δ
vcr/filters.py 94.64% <100.00%> (ø)
vcr/matchers.py 95.34% <100.00%> (ø)

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more