Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Dec 16, 2019
1 parent 08933ad commit 497e667
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,16 +494,15 @@ def test_call_for_encoded_variant_without_unencoded_variant_with_accept(
def test_call_for_unencoded_variant_with_only_encoded_variant_no_accept(
self,
):
from pyramid.httpexceptions import HTTPNotFound

inst = self._makeOne(
'tests:fixtures/static', content_encodings=['gzip']
)
request = self._makeRequest({'PATH_INFO': '/only_encoded.html'})
context = DummyContext()

res = inst(context, request)
self.assertNotIn('Vary', res.headers)
self.assertNotIn('Content-Encoding', res.headers)
self.assertEqual(len(res.body), 187)
self.assertRaises(HTTPNotFound, lambda: inst(context, request))

def test_call_for_unencoded_variant_with_only_encoded_variant_with_accept(
self,
Expand Down

0 comments on commit 497e667

Please sign in to comment.