Skip to content

Commit

Permalink
Merge pull request #823 from mgorny/httpbin-compat
Browse files Browse the repository at this point in the history
Improve test compatibility with legacy httpbin index
  • Loading branch information
hartwork authored Feb 28, 2024
2 parents 1fb9179 + e60dafb commit c6d8730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_basic_json_use(tmpdir, httpbin):
test_fixture = str(tmpdir.join("synopsis.json"))
with vcr.use_cassette(test_fixture, serializer="json"):
response = urlopen(httpbin.url).read()
assert b"A simple HTTP Request & Response Service." in response
assert b"HTTP Request & Response Service" in response


def test_patched_content(tmpdir, httpbin):
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_register_persister.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_load_cassette_with_custom_persister(tmpdir, httpbin):

with my_vcr.use_cassette(test_fixture, serializer="json"):
response = urlopen(httpbin.url).read()
assert b"A simple HTTP Request & Response Service." in response
assert b"HTTP Request & Response Service" in response


def test_load_cassette_persister_exception_handling(tmpdir, httpbin):
Expand Down

0 comments on commit c6d8730

Please sign in to comment.