Skip to content

Commit

Permalink
Fix expected 404 error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Oct 31, 2024
1 parent 5773018 commit c79af0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def test_path_traversal_not_found(self):
resp = self.testapp.get('/static%2F..%2F..%2F..%2F..%2Fosfile.txt', status = 404)
assert resp.status_int == 404

assert 'Static file not found: <b>..%2F..%2F..%2F..%2Fosfile.txt</b>' in resp.text
assert 'Static file not found: <b>../../../../osfile.txt' in resp.text

def test_cdx_server_filters(self):
resp = self.testapp.get('/pywb/cdx?url=http://www.iana.org/_css/2013.1/screen.css&filter=mime:warc/revisit&filter=filename:dupes.warc.gz')
Expand Down

0 comments on commit c79af0d

Please sign in to comment.