Handle bytes in YAML caching
Compare changes
+ 3
− 1
@@ -30,7 +30,9 @@ def cache_yaml(monkeypatch):
The API client uses response.content
from requests
when using a schema from a URL, which returns a bytestring, causing AttributeErrors with the YAML caches as it tries to get the file name of the bytestring.