(self, pytester: Pytester)
| 443 | reprec.assertoutcome(passed=1) |
| 444 | |
| 445 | def test_capsyscapfd(self, pytester: Pytester) -> None: |
| 446 | p = pytester.makepyfile( |
| 447 | """\ |
| 448 | def test_one(capsys, capfd): |
| 449 | pass |
| 450 | def test_two(capfd, capsys): |
| 451 | pass |
| 452 | """ |
| 453 | ) |
| 454 | result = pytester.runpytest(p) |
| 455 | result.stdout.fnmatch_lines( |
| 456 | [ |
| 457 | "*ERROR*setup*test_one*", |
| 458 | "E*capfd*capsys*same*time*", |
| 459 | "*ERROR*setup*test_two*", |
| 460 | "E*capsys*capfd*same*time*", |
| 461 | "*2 errors*", |
| 462 | ] |
| 463 | ) |
| 464 | |
| 465 | def test_capturing_getfixturevalue(self, pytester: Pytester) -> None: |
| 466 | """Test that asking for "capfd" and "capsys" using request.getfixturevalue |
nothing calls this directly
no test coverage detected