Lines Matching refs:testdir

12     def test_no_marker(self, testdir):  argument
13 item = testdir.getitem("def test_func(): pass")
17 def test_marked_xfail_no_args(self, testdir): argument
18 item = testdir.getitem(
31 def test_marked_skipif_no_args(self, testdir): argument
32 item = testdir.getitem(
44 def test_marked_one_arg(self, testdir): argument
45 item = testdir.getitem(
57 def test_marked_one_arg_with_reason(self, testdir): argument
58 item = testdir.getitem(
70 def test_marked_one_arg_twice(self, testdir): argument
76 item = testdir.getitem(
90 def test_marked_one_arg_twice2(self, testdir): argument
91 item = testdir.getitem(
104 def test_marked_skipif_with_boolean_without_reason(self, testdir) -> None: argument
105 item = testdir.getitem(
121 def test_marked_skipif_with_invalid_boolean(self, testdir) -> None: argument
122 item = testdir.getitem(
141 def test_skipif_class(self, testdir): argument
142 (item,) = testdir.getitems(
159 def test_xfail_simple(self, testdir, strict): argument
160 item = testdir.getitem(
175 def test_xfail_xpassed(self, testdir): argument
176 item = testdir.getitem(
190 def test_xfail_using_platform(self, testdir): argument
192 item = testdir.getitem(
205 def test_xfail_xpassed_strict(self, testdir): argument
206 item = testdir.getitem(
221 def test_xfail_run_anyway(self, testdir): argument
222 testdir.makepyfile(
232 result = testdir.runpytest("--runxfail")
250 def test_xfail_run_with_skip_mark(self, testdir, test_input, expected): argument
251 testdir.makepyfile(
259 result = testdir.runpytest(*test_input)
262 def test_xfail_evalfalse_but_fails(self, testdir): argument
263 item = testdir.getitem(
277 def test_xfail_not_report_default(self, testdir): argument
278 p = testdir.makepyfile(
286 testdir.runpytest(p, "-v")
291 def test_xfail_not_run_xfail_reporting(self, testdir): argument
292 p = testdir.makepyfile(
306 result = testdir.runpytest(p, "-rx")
317 def test_xfail_not_run_no_setup_run(self, testdir): argument
318 p = testdir.makepyfile(
328 result = testdir.runpytest(p, "-rx")
333 def test_xfail_xpass(self, testdir): argument
334 p = testdir.makepyfile(
342 result = testdir.runpytest(p, "-rX")
346 def test_xfail_imperative(self, testdir): argument
347 p = testdir.makepyfile(
354 result = testdir.runpytest(p)
356 result = testdir.runpytest(p, "-rx")
358 result = testdir.runpytest(p, "--runxfail")
361 def test_xfail_imperative_in_setup_function(self, testdir): argument
362 p = testdir.makepyfile(
372 result = testdir.runpytest(p)
374 result = testdir.runpytest(p, "-rx")
376 result = testdir.runpytest(p, "--runxfail")
384 def xtest_dynamic_xfail_set_during_setup(self, testdir): argument
385 p = testdir.makepyfile(
396 result = testdir.runpytest(p, "-rxX")
399 def test_dynamic_xfail_no_run(self, testdir): argument
400 p = testdir.makepyfile(
410 result = testdir.runpytest(p, "-rxX")
413 def test_dynamic_xfail_set_during_funcarg_setup(self, testdir): argument
414 p = testdir.makepyfile(
424 result = testdir.runpytest(p)
427 def test_dynamic_xfail_set_during_runtest_failed(self, testdir: Testdir) -> None:
429 p = testdir.makepyfile(
437 result = testdir.runpytest(p)
441 self, testdir: Testdir
444 p = testdir.makepyfile(
451 result = testdir.runpytest(p)
463 def test_xfail_raises(self, expected, actual, matchline, testdir): argument
464 p = testdir.makepyfile(
473 result = testdir.runpytest(p)
476 def test_strict_sanity(self, testdir): argument
479 p = testdir.makepyfile(
487 result = testdir.runpytest(p, "-rxX")
492 def test_strict_xfail(self, testdir, strict): argument
493 p = testdir.makepyfile(
503 result = testdir.runpytest(p, "-rxX")
516 assert testdir.tmpdir.join("foo_executed").isfile()
519 def test_strict_xfail_condition(self, testdir, strict): argument
520 p = testdir.makepyfile(
530 result = testdir.runpytest(p, "-rxX")
535 def test_xfail_condition_keyword(self, testdir, strict): argument
536 p = testdir.makepyfile(
546 result = testdir.runpytest(p, "-rxX")
551 def test_strict_xfail_default_from_file(self, testdir, strict_val): argument
552 testdir.makeini(
559 p = testdir.makepyfile(
567 result = testdir.runpytest(p, "-rxX")
574 def test_failing_setup_issue9(self, testdir): argument
575 testdir.makepyfile(
586 result = testdir.runpytest()
589 def test_failing_teardown_issue9(self, testdir): argument
590 testdir.makepyfile(
601 result = testdir.runpytest()
606 def test_skip_class(self, testdir): argument
607 testdir.makepyfile(
621 rec = testdir.inline_run()
624 def test_skips_on_false_string(self, testdir): argument
625 testdir.makepyfile(
633 rec = testdir.inline_run()
636 def test_arg_as_reason(self, testdir): argument
637 testdir.makepyfile(
645 result = testdir.runpytest("-rs")
648 def test_skip_no_reason(self, testdir): argument
649 testdir.makepyfile(
657 result = testdir.runpytest("-rs")
660 def test_skip_with_reason(self, testdir): argument
661 testdir.makepyfile(
669 result = testdir.runpytest("-rs")
672 def test_only_skips_marked_test(self, testdir): argument
673 testdir.makepyfile(
686 result = testdir.runpytest("-rs")
689 def test_strict_and_skip(self, testdir): argument
690 testdir.makepyfile(
698 result = testdir.runpytest("-rs")
703 def test_skipif_conditional(self, testdir): argument
704 item = testdir.getitem(
718 def test_skipif_reporting(self, testdir, params): argument
719 p = testdir.makepyfile(
728 result = testdir.runpytest(p, "-s", "-rs")
732 def test_skipif_using_platform(self, testdir): argument
733 item = testdir.getitem(
747 def test_skipif_reporting_multiple(self, testdir, marker, msg1, msg2): argument
748 testdir.makepyfile(
759 result = testdir.runpytest("-s", "-rsxX")
769 def test_skip_not_report_default(testdir): argument
770 p = testdir.makepyfile(
777 result = testdir.runpytest(p, "-v")
786 def test_skipif_class(testdir): argument
787 p = testdir.makepyfile(
799 result = testdir.runpytest(p)
803 def test_skipped_reasons_functional(testdir): argument
804 testdir.makepyfile(
830 result = testdir.runpytest("-rs")
840 def test_skipped_folding(testdir): argument
841 testdir.makepyfile(
854 result = testdir.runpytest("-rs")
859 def test_reportchars(testdir): argument
860 testdir.makepyfile(
875 result = testdir.runpytest("-rfxXs")
881 def test_reportchars_error(testdir): argument
882 testdir.makepyfile(
892 result = testdir.runpytest("-rE")
896 def test_reportchars_all(testdir): argument
897 testdir.makepyfile(
917 result = testdir.runpytest("-ra")
929 def test_reportchars_all_error(testdir): argument
930 testdir.makepyfile(
940 result = testdir.runpytest("-ra")
944 def test_errors_in_xfail_skip_expressions(testdir) -> None: argument
945 testdir.makepyfile(
959 result = testdir.runpytest()
981 def test_xfail_skipif_with_globals(testdir): argument
982 testdir.makepyfile(
994 result = testdir.runpytest("-rsx")
998 def test_default_markers(testdir): argument
999 result = testdir.runpytest("--markers")
1008 def test_xfail_test_setup_exception(testdir): argument
1009 testdir.makeconftest(
1015 p = testdir.makepyfile(
1023 result = testdir.runpytest(p)
1029 def test_imperativeskip_on_xfail_test(testdir): argument
1030 testdir.makepyfile(
1042 testdir.makeconftest(
1049 result = testdir.runpytest("-rsxX")
1060 def test_skipif(self, testdir): argument
1061 testdir.makepyfile(
1072 result = testdir.runpytest()
1079 def test_skipif_noreason(self, testdir): argument
1080 testdir.makepyfile(
1088 result = testdir.runpytest("-rs")
1095 def test_xfail(self, testdir): argument
1096 testdir.makepyfile(
1104 result = testdir.runpytest("-rxs")
1114 def test_xfail_item(testdir): argument
1116 testdir.makeconftest(
1129 result = testdir.inline_run()
1136 def test_module_level_skip_error(testdir): argument
1138 testdir.makepyfile(
1147 result = testdir.runpytest()
1153 def test_module_level_skip_with_allow_module_level(testdir): argument
1155 testdir.makepyfile(
1164 result = testdir.runpytest("-rxs")
1168 def test_invalid_skip_keyword_parameter(testdir): argument
1170 testdir.makepyfile(
1179 result = testdir.runpytest()
1183 def test_mark_xfail_item(testdir): argument
1185 testdir.makeconftest(
1203 result = testdir.inline_run()
1210 def test_summary_list_after_errors(testdir): argument
1212 testdir.makepyfile(
1219 result = testdir.runpytest("-ra")
1237 def test_relpath_rootdir(testdir): argument
1238 testdir.makepyfile(
1248 result = testdir.runpytest("-rs", "tests/test_1.py", "--rootdir=tests")