@@ -29,17 +29,15 @@ def fixture_function(httpbin, fixture_session):
2929def test_no_httpdbg (pytester ):
3030 pytester .makeconftest (confest_py )
3131
32- pytester .makepyfile (
33- """
32+ pytester .makepyfile ("""
3433 import requests
3534
3635 def test_get(httpbin, fixture_session, fixture_function):
3736 requests.get(httpbin.url + "/intest")
3837
3938 def test_post(httpbin, fixture_session):
4039 requests.post(httpbin.url + "/intest")
41- """
42- )
40+ """ )
4341
4442 result = pytester .runpytest ()
4543
@@ -52,17 +50,15 @@ def test_record_in_dir(pytester, tmp_path):
5250
5351 pytester .makeconftest (confest_py )
5452
55- pytester .makepyfile (
56- """
53+ pytester .makepyfile ("""
5754 import requests
5855
5956 def test_get(httpbin, fixture_session, fixture_function):
6057 requests.get(httpbin.url + "/intest")
6158
6259 def test_post(httpbin, fixture_session):
6360 requests.post(httpbin.url + "/intest")
64- """
65- )
61+ """ )
6662
6763 result = pytester .runpytest ("--httpdbg" , "--httpdbg-dir" , str (logs_dir ))
6864
@@ -87,14 +83,12 @@ def test_with_initiator(pytester, tmp_path):
8783 ".py" , fakepackage = "import requests\n def coucou(url):\n requests.get(url)\n "
8884 )
8985
90- pytester .makepyfile (
91- """
86+ pytester .makepyfile ("""
9287 import fakepackage
9388
9489 def test_with_initiator_fake(httpbin):
9590 fakepackage.coucou(httpbin.url)
96- """
97- )
91+ """ )
9892
9993 result = pytester .runpytest (
10094 "--httpdbg" ,
@@ -125,14 +119,12 @@ def test_without_initiator(pytester, tmp_path):
125119 ".py" , fakepackage = "import requests\n def coucou(url):\n requests.get(url)\n "
126120 )
127121
128- pytester .makepyfile (
129- """
122+ pytester .makepyfile ("""
130123 import fakepackage
131124
132125 def test_without_initiator_fake(httpbin):
133126 fakepackage.coucou(httpbin.url)
134- """
135- )
127+ """ )
136128
137129 result = pytester .runpytest ("--httpdbg" , "--httpdbg-dir" , str (logs_dir ))
138130
0 commit comments