Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
flake8
black
pytest>7
requests<2.34 # until httpdbg and/or requests are fixed: "You can only merge into CookieJar"
requests
build
Jinja2
Werkzeug
Expand Down
6 changes: 4 additions & 2 deletions tests/test_allure.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def test_post(httpbin, fixture_session, fixture_function):
requests.post(httpbin.url + "/post", json={"a":"b"})
""")

result = pytester.runpytest("--httpdbg-allure", f"--alluredir={tmp_path}")
result = pytester.runpytest_subprocess(
"--httpdbg-allure", f"--alluredir={tmp_path}"
)

result.assert_outcomes(passed=2)

Expand Down Expand Up @@ -98,7 +100,7 @@ def test_fail(httpbin):
assert False
""")

result = pytester.runpytest(
result = pytester.runpytest_subprocess(
"--httpdbg-allure", f"--alluredir={tmp_path}", "--httpdbg-only-on-failure"
)

Expand Down
8 changes: 4 additions & 4 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_post(httpbin, fixture_session):
requests.post(httpbin.url + "/intest")
""")

result = pytester.runpytest()
result = pytester.runpytest_subprocess()

result.assert_outcomes(passed=2)

Expand All @@ -60,7 +60,7 @@ def test_post(httpbin, fixture_session):
requests.post(httpbin.url + "/intest")
""")

result = pytester.runpytest("--httpdbg", "--httpdbg-dir", str(logs_dir))
result = pytester.runpytest_subprocess("--httpdbg", "--httpdbg-dir", str(logs_dir))

result.assert_outcomes(passed=2)

Expand Down Expand Up @@ -90,7 +90,7 @@ def test_with_initiator_fake(httpbin):
fakepackage.coucou(httpbin.url)
""")

result = pytester.runpytest(
result = pytester.runpytest_subprocess(
"--httpdbg",
"--httpdbg-dir",
str(logs_dir),
Expand Down Expand Up @@ -126,7 +126,7 @@ def test_without_initiator_fake(httpbin):
fakepackage.coucou(httpbin.url)
""")

result = pytester.runpytest("--httpdbg", "--httpdbg-dir", str(logs_dir))
result = pytester.runpytest_subprocess("--httpdbg", "--httpdbg-dir", str(logs_dir))

result.assert_outcomes(passed=1)

Expand Down