Skip to content
Merged
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
12 changes: 4 additions & 8 deletions tests/test_pytest_pystack.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ def test_default_pystack_options(testdir, monkeypatch, capfd):


def serialize_config(pystack_config):
return textwrap.dedent(
f"""
return textwrap.dedent(f"""
[tool.pytest.ini_options]
{pystack_config}
"""
)
""")


def test_silent_when_debugging_by_default(testdir, monkeypatch):
Expand Down Expand Up @@ -311,8 +309,7 @@ def test_pytester_compat(testdir, capfd, monkeypatch):
# create a temporary pytest test file

monkeypatch.chdir(testdir.tmpdir)
testdir.makepyfile(
"""
testdir.makepyfile("""
pytest_plugins = 'pytester'

test_file ='''
Expand All @@ -329,8 +326,7 @@ def test_pytester(pytester):
pytester.makepyfile(test_file)
result = pytester.runpytest()
result.assert_outcomes(passed=1)
"""
)
""")
result = testdir.runpytest("--pystack-threshold=3", "-s")

# check that all 1 test passed
Expand Down
Loading