javajeff13

outputvvfold.ansi

Jan 24th, 2022 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.19 KB | None | 0 0
  1. =================================================================== test session starts ====================================================================
  2. platform darwin -- Python 3.10.0b2, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /Users/jwr003/coding/pytest-fold/.venv/bin/python
  3. cachedir: .pytest_cache
  4. rootdir: /Users/jwr003/coding/pytest-fold, configfile: pyproject.toml, testpaths: tests
  5. plugins: session2file-0.1.11
  6. collecting ...
  7. collected 18 items
  8.  
  9. tests/test_pytest_fold.py::test_version PASSED [ 5%]
  10. tests/test_pytest_fold.py::test_which_fails_1 FAILED [ 11%]
  11. tests/test_pytest_fold.py::test_which_passes_1 PASSED [ 16%]
  12. tests/test_pytest_fold.py::test_which_fails_2 FAILED [ 22%]
  13. tests/test_pytest_fold.py::test_which_passes_2 PASSED [ 27%]
  14. tests/test_pytest_fold.py::test_which_fails_3 FAILED [ 33%]
  15. tests/test_pytest_fold.py::test_which_passes_3 PASSED [ 38%]
  16. tests/test_pytest_fold.py::test_fail_1 FAILED [ 44%]
  17. tests/test_pytest_fold.py::test_fail_2 FAILED [ 50%]
  18. tests/test_pytest_fold.py::test_fail_3 FAILED [ 55%]
  19. tests/test_pytest_fold.py::test_pass_1 PASSED [ 61%]
  20. tests/test_pytest_fold.py::test_pass_2 PASSED [ 66%]
  21. tests/test_pytest_fold.py::test_pass_3 PASSED [ 72%]
  22. tests/test_pytest_fold.py::test_which_fails_and_has_stdout_1 FAILED [ 77%]
  23. tests/test_pytest_fold.py::test_which_pauses_and_fails_and_has_stdout_1 FAILED [ 83%]
  24. tests/test_pytest_fold.py::test_which_passes_and_has_stdout_2 PASSED [ 88%]
  25. tests/test_pytest_fold.py::test_summary PASSED [ 94%]
  26. tests/test_pytest_fold.py::test_fixture_for_fun_fail ERROR [100%]
  27.  
  28. ========================================================================== ERRORS ==========================================================================
  29. _______________________________________________________ ERROR at setup of test_fixture_for_fun_fail ________________________________________________________
  30. file /Users/jwr003/coding/pytest-fold/tests/test_pytest_fold.py, line 135
  31. def test_fixture_for_fun_fail(fixture_for_fun):
  32. E fixture 'fixture_for_fun' not found
  33. > available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, fold, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
  34. > use 'pytest --fixtures [testpath]' for help on them.
  35.  
  36. /Users/jwr003/coding/pytest-fold/tests/test_pytest_fold.py:135
  37. ========================================================================= FAILURES =========================================================================
  38. ____________________________________________________________________ test_which_fails_1 ____________________________________________________________________
  39.  
  40. ==>MARKER1<==
  41. def test_which_fails_1():
  42. > assert 0
  43. E assert 0
  44.  
  45. tests/test_pytest_fold.py:18: AssertionError
  46. ==>MARKER2<==
  47. ____________________________________________________________________ test_which_fails_2 ____________________________________________________________________
  48.  
  49. ==>MARKER1<==
  50. def test_which_fails_2():
  51. > assert 0
  52. E assert 0
  53.  
  54. tests/test_pytest_fold.py:26: AssertionError
  55. ==>MARKER2<==
  56. ____________________________________________________________________ test_which_fails_3 ____________________________________________________________________
  57.  
  58. ==>MARKER1<==
  59. def test_which_fails_3():
  60. > assert 0
  61. E assert 0
  62.  
  63. tests/test_pytest_fold.py:34: AssertionError
  64. ==>MARKER2<==
  65. _______________________________________________________________________ test_fail_1 ________________________________________________________________________
  66.  
  67. ==>MARKER1<==
  68. def test_fail_1():
  69. a = 0
  70. time.sleep(0.05)
  71. > assert False
  72. E assert False
  73.  
  74. tests/test_pytest_fold.py:74: AssertionError
  75. ==>MARKER2<==
  76. _______________________________________________________________________ test_fail_2 ________________________________________________________________________
  77.  
  78. ==>MARKER1<==
  79. def test_fail_2():
  80. a = 0
  81. time.sleep(0.05)
  82. > assert False
  83. E assert False
  84.  
  85. tests/test_pytest_fold.py:80: AssertionError
  86. ==>MARKER2<==
  87. _______________________________________________________________________ test_fail_3 ________________________________________________________________________
  88.  
  89. ==>MARKER1<==
  90. def test_fail_3():
  91. a = 0
  92. time.sleep(0.05)
  93. > assert False
  94. E assert False
  95.  
  96. tests/test_pytest_fold.py:86: AssertionError
  97. ==>MARKER2<==
  98. ____________________________________________________________ test_which_fails_and_has_stdout_1 _____________________________________________________________
  99.  
  100. capsys = <_pytest.capture.CaptureFixture object at 0x10d1c58a0>
  101.  
  102. ==>MARKER1<==
  103. def test_which_fails_and_has_stdout_1(capsys):
  104. print("this test fails")
  105. > assert 0 == 1
  106. E assert 0 == 1
  107. E +0
  108. E -1
  109.  
  110. tests/test_pytest_fold.py:109: AssertionError
  111. ==>MARKER2<==
  112. ------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------
  113. this test fails
  114. _______________________________________________________ test_which_pauses_and_fails_and_has_stdout_1 _______________________________________________________
  115.  
  116. capsys = <_pytest.capture.CaptureFixture object at 0x10d2b9750>
  117.  
  118. ==>MARKER1<==
  119. def test_which_pauses_and_fails_and_has_stdout_1(capsys):
  120. print("this test pauses, then fails")
  121. time.sleep(2)
  122. > assert 0 == -11
  123. E assert 0 == -11
  124. E +0
  125. E --11
  126.  
  127. tests/test_pytest_fold.py:115: AssertionError
  128. ==>MARKER2<==
  129. ------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------
  130. this test pauses, then fails
  131. ================================================================= short test summary info ==================================================================
  132. FAILED tests/test_pytest_fold.py::test_which_fails_1 - assert 0
  133. FAILED tests/test_pytest_fold.py::test_which_fails_2 - assert 0
  134. FAILED tests/test_pytest_fold.py::test_which_fails_3 - assert 0
  135. FAILED tests/test_pytest_fold.py::test_fail_1 - assert False
  136. FAILED tests/test_pytest_fold.py::test_fail_2 - assert False
  137. FAILED tests/test_pytest_fold.py::test_fail_3 - assert False
  138. FAILED tests/test_pytest_fold.py::test_which_fails_and_has_stdout_1 - assert 0 == 1
  139. FAILED tests/test_pytest_fold.py::test_which_pauses_and_fails_and_has_stdout_1 - assert 0 == -11
  140. ERROR tests/test_pytest_fold.py::test_fixture_for_fun_fail
  141. =========================================================== 8 failed, 9 passed, 1 error in 2.48s ===========================================================
  142.  
Add Comment
Please, Sign In to add comment