Lines Matching refs:testdir

34 def assert_count(testdir, *args):  argument
36 without_plugin = testdir.runpytest('-p', 'no:sugar', *args).stdout.str()
37 with_plugin = testdir.runpytest('--force-sugar', *args).stdout.str()
54 def test_new_summary(self, testdir): argument
55 testdir.makepyfile(
63 output = testdir.runpytest(
68 def test_old_summary(self, testdir): argument
69 testdir.makepyfile(
77 output = testdir.runpytest(
82 def test_xfail_true(self, testdir): argument
83 testdir.makepyfile(
92 assert_count(testdir)
94 def test_xfail_false(self, testdir): argument
95 testdir.makepyfile(
104 assert_count(testdir)
106 def test_report_header(self, testdir): argument
107 testdir.makeconftest(
113 testdir.makepyfile(
119 result = testdir.runpytest('--force-sugar')
122 def test_xfail_strict_true(self, testdir): argument
123 testdir.makepyfile(
132 assert_count(testdir)
134 def test_xfail_strict_false(self, testdir): argument
135 testdir.makepyfile(
144 assert_count(testdir)
146 def test_xpass_true(self, testdir): argument
147 testdir.makepyfile(
156 assert_count(testdir)
158 def test_xpass_false(self, testdir): argument
159 testdir.makepyfile(
168 assert_count(testdir)
170 def test_flaky_test(self, testdir): argument
172 testdir.makepyfile(
185 assert_count(testdir)
187 def test_xpass_strict(self, testdir): argument
188 testdir.makepyfile(
197 result = testdir.runpytest('--force-sugar')
204 def test_teardown_errors(self, testdir): argument
205 testdir.makepyfile(
217 assert_count(testdir)
219 result = testdir.runpytest('--force-sugar')
226 def test_skipping_tests(self, testdir): argument
227 testdir.makepyfile(
235 assert_count(testdir)
237 def test_deselecting_tests(self, testdir): argument
238 testdir.makepyfile(
249 assert_count(testdir)
251 def test_item_count_after_pytest_collection_modifyitems(self, testdir): argument
252 testdir.makeconftest(
262 testdir.makepyfile(
271 result = testdir.runpytest('-s')
278 def test_fail(self, testdir): argument
279 testdir.makepyfile(
286 result = testdir.runpytest('--force-sugar')
294 def test_fail_unicode_crashline(self, testdir): argument
295 testdir.makepyfile(
303 result = testdir.runpytest('--force-sugar')
311 def test_fail_in_fixture_and_test(self, testdir): argument
312 testdir.makepyfile(
329 assert_count(testdir)
330 output = strip_colors(testdir.runpytest('--force-sugar').stdout.str())
333 def test_fail_fail(self, testdir): argument
334 testdir.makepyfile(
343 assert_count(testdir)
344 result = testdir.runpytest('--force-sugar')
356 def test_error_in_setup_then_pass(self, testdir): argument
357 testdir.makepyfile(
369 assert_count(testdir)
370 result = testdir.runpytest('--force-sugar')
388 def test_error_in_teardown_then_pass(self, testdir): argument
389 testdir.makepyfile(
401 assert_count(testdir)
402 result = testdir.runpytest('--force-sugar')
421 def test_collect_error(self, testdir): argument
422 testdir.makepyfile("""raise ValueError(0)""")
423 assert_count(testdir)
424 result = testdir.runpytest('--force-sugar')
432 def test_verbose(self, testdir): argument
433 testdir.makepyfile(
459 assert_count(testdir, '--verbose')
461 def test_verbose_has_double_colon(self, testdir): argument
462 testdir.makepyfile(
468 output = testdir.runpytest(
508 def test_xdist(self, testdir): argument
510 testdir.makepyfile(
518 result = testdir.runpytest('--force-sugar', '-n2')
522 def test_xdist_verbose(self, testdir): argument
524 testdir.makepyfile(
532 result = testdir.runpytest('--force-sugar', '-n2', '-v')
536 def test_doctest(self, testdir): argument
539 testdir.makepyfile(
549 result = testdir.runpytest('--force-sugar', '--doctest-modules')
553 def test_doctest_lineno(self, testdir): argument
556 testdir.makepyfile(
565 result = testdir.runpytest('--force-sugar', '--doctest-modules')