1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Enable rule B (flake8-bugbear) on ruff

This commit is contained in:
Jair Henrique
2023-06-27 09:12:40 -03:00
parent 016a394f2c
commit 4f70152e7c
12 changed files with 29 additions and 29 deletions

View File

@@ -13,8 +13,10 @@ def assert_cassette_has_one_response(cass):
def assert_is_json_bytes(b: bytes):
assert isinstance(b, bytes)
try:
json.loads(b.decode("utf-8"))
except Exception:
assert False
except Exception as error:
raise AssertionError() from error
assert True