From 69cecdbda7b345cc82c7fda92190cad9064f5aa7 Mon Sep 17 00:00:00 2001 From: Paulo Romeira Date: Tue, 9 Jun 2020 09:40:12 -0300 Subject: [PATCH] aiohttp: Fix tests --- tests/integration/test_aiohttp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_aiohttp.py b/tests/integration/test_aiohttp.py index 14909a3..17bc691 100644 --- a/tests/integration/test_aiohttp.py +++ b/tests/integration/test_aiohttp.py @@ -180,9 +180,8 @@ def test_params_same_url_distinct_params(tmpdir, scheme): other_params = {"other": "params"} with vcr.use_cassette(str(tmpdir.join("get.yaml"))) as cassette: - response, cassette_response_text = get(url, output="text", params=other_params) - assert "No match for the request" in cassette_response_text - assert response.status == 599 + with pytest.raises(vcr.errors.CannotOverwriteExistingCassetteException): + get(url, output="text", params=other_params) def test_params_on_url(tmpdir, scheme):