diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-11 20:47:39 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-11 20:47:39 -0500 |
commit | bf841322a495ba16f5ad682f7e7bf8461e18ac0b (patch) | |
tree | 1441832ee501b92409f0aa0dfe66bf52dfab8788 /tests | |
parent | a78af0338d9b3a59c33c15e50cd54422ae7489b8 (diff) | |
download | requests-cache-bf841322a495ba16f5ad682f7e7bf8461e18ac0b.tar.gz |
Clean up SerializerPipeline.decode_content
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/test_filesystem.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/integration/test_filesystem.py b/tests/integration/test_filesystem.py index 54c782d..dfe9414 100644 --- a/tests/integration/test_filesystem.py +++ b/tests/integration/test_filesystem.py @@ -82,15 +82,16 @@ class TestFileCache(BaseCacheTest): """Test all relevant combinations of response formats X serializers""" if not _valid_serializer(serializer): pytest.skip(f'Dependencies not installed for {serializer}') + serializer.set_decode_content(False) super().test_all_response_formats(response_format, serializer) @pytest.mark.parametrize('serializer', [json_serializer, yaml_serializer]) @pytest.mark.parametrize('response_format', HTTPBIN_FORMATS) def test_all_response_formats__no_decode_content(self, response_format, serializer): - """Test with decode_content=False for text-based serialization formats""" + """Test with decode_content=True for text-based serialization formats""" if not _valid_serializer(serializer): pytest.skip(f'Dependencies not installed for {serializer}') - serializer.decode_content = False + serializer.set_decode_content(True) self.test_all_response_formats(response_format, serializer) @pytest.mark.parametrize('serializer_name', SERIALIZERS.keys()) |