File: test_pytester_plugin.py

package info (click to toggle)
python-flaky 3.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: python: 1,320; makefile: 11; sh: 10
file content (16 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pytest_plugins = 'pytester'  # pylint:disable=invalid-name

TESTSUITE = """
def test_a_thing():
    pass

"""


def test_output_without_capture(testdir):
    """
    Test for Issue #82. Flaky was breaking tests using the pytester plugin.
    """
    script = testdir.makepyfile(TESTSUITE)
    result = testdir.runpytest(script, '--verbose', '--capture', 'fd')
    assert result.ret == 0