From 00f718e6c0ca82c8a817ec353853b3db733a6a7d Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Wed, 3 Feb 2021 20:52:56 +0300 Subject: [PATCH] Fix location for contrib har_dump.py in its test (#4424) To run the test, I had to copy `conftest.py` to examples. cp test/conftest.py examples pytest examples/contrib/test_har_dump.py This fixes the `fixture 'tdata' not found` error. --- examples/contrib/test_har_dump.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/contrib/test_har_dump.py b/examples/contrib/test_har_dump.py index f6b27443a..3f3646f80 100644 --- a/examples/contrib/test_har_dump.py +++ b/examples/contrib/test_har_dump.py @@ -21,7 +21,7 @@ class TestHARDump: def test_simple(self, tmpdir, tdata): with taddons.context() as tctx: - a = tctx.script(tdata.path("../examples/complex/har_dump.py")) + a = tctx.script(tdata.path("../examples/contrib/har_dump.py")) path = str(tmpdir.join("somefile")) tctx.configure(a, hardump=path) tctx.invoke(a, "response", self.flow()) @@ -32,7 +32,7 @@ class TestHARDump: def test_base64(self, tmpdir, tdata): with taddons.context() as tctx: - a = tctx.script(tdata.path("../examples/complex/har_dump.py")) + a = tctx.script(tdata.path("../examples/contrib/har_dump.py")) path = str(tmpdir.join("somefile")) tctx.configure(a, hardump=path) @@ -46,7 +46,7 @@ class TestHARDump: def test_format_cookies(self, tdata): with taddons.context() as tctx: - a = tctx.script(tdata.path("../examples/complex/har_dump.py")) + a = tctx.script(tdata.path("../examples/contrib/har_dump.py")) CA = cookies.CookieAttrs @@ -65,7 +65,7 @@ class TestHARDump: def test_binary(self, tmpdir, tdata): with taddons.context() as tctx: - a = tctx.script(tdata.path("../examples/complex/har_dump.py")) + a = tctx.script(tdata.path("../examples/contrib/har_dump.py")) path = str(tmpdir.join("somefile")) tctx.configure(a, hardump=path)