Lines Matching refs:testdir

12 def test_simple_unittest(testdir):  argument
13 testpath = testdir.makepyfile(
23 reprec = testdir.inline_run(testpath)
28 def test_runTest_method(testdir): argument
29 testdir.makepyfile(
42 result = testdir.runpytest("-v")
52 def test_isclasscheck_issue53(testdir): argument
53 testpath = testdir.makepyfile(
62 result = testdir.runpytest(testpath)
66 def test_setup(testdir): argument
67 testpath = testdir.makepyfile(
83 reprec = testdir.inline_run("-s", testpath)
89 def test_setUpModule(testdir): argument
90 testpath = testdir.makepyfile(
107 result = testdir.runpytest(testpath)
111 def test_setUpModule_failing_no_teardown(testdir): argument
112 testpath = testdir.makepyfile(
126 reprec = testdir.inline_run(testpath)
132 def test_new_instances(testdir): argument
133 testpath = testdir.makepyfile(
143 reprec = testdir.inline_run(testpath)
147 def test_function_item_obj_is_instance(testdir): argument
149 testdir.makeconftest(
157 testdir.makepyfile(
166 result = testdir.runpytest_inprocess()
170 def test_teardown(testdir): argument
171 testpath = testdir.makepyfile(
185 reprec = testdir.inline_run(testpath)
192 def test_teardown_issue1649(testdir): argument
200 testpath = testdir.makepyfile(
211 testdir.inline_run("-s", testpath)
217 def test_unittest_skip_issue148(testdir): argument
218 testpath = testdir.makepyfile(
234 reprec = testdir.inline_run(testpath)
238 def test_method_and_teardown_failing_reporting(testdir): argument
239 testdir.makepyfile(
249 result = testdir.runpytest("-s")
262 def test_setup_failure_is_shown(testdir): argument
263 testdir.makepyfile(
275 result = testdir.runpytest("-s")
281 def test_setup_setUpClass(testdir): argument
282 testpath = testdir.makepyfile(
302 reprec = testdir.inline_run(testpath)
306 def test_setup_class(testdir): argument
307 testpath = testdir.makepyfile(
325 reprec = testdir.inline_run(testpath)
330 def test_testcase_adderrorandfailure_defers(testdir, type): argument
331 testdir.makepyfile(
349 result = testdir.runpytest()
354 def test_testcase_custom_exception_info(testdir, type): argument
355 testdir.makepyfile(
380 result = testdir.runpytest()
390 def test_testcase_totally_incompatible_exception_info(testdir): argument
391 (item,) = testdir.getitems(
404 def test_module_level_pytestmark(testdir): argument
405 testpath = testdir.makepyfile(
415 reprec = testdir.inline_run(testpath, "-s")
426 def test_trial_testcase_runtest_not_collected(self, testdir): argument
427 testdir.makepyfile(
436 reprec = testdir.inline_run(*self.ignore_unclosed_socket_warning)
438 testdir.makepyfile(
447 reprec = testdir.inline_run(*self.ignore_unclosed_socket_warning)
450 def test_trial_exceptions_with_skips(self, testdir): argument
451 testdir.makepyfile(
488 result = testdir.runpytest("-rxs", *self.ignore_unclosed_socket_warning)
505 def test_trial_error(self, testdir): argument
506 testdir.makepyfile(
543 result = testdir.runpytest()
559 def test_trial_pdb(self, testdir): argument
560 p = testdir.makepyfile(
569 child = testdir.spawn_pytest(p)
573 def test_trial_testcase_skip_property(self, testdir): argument
574 testpath = testdir.makepyfile(
583 reprec = testdir.inline_run(testpath, "-s")
586 def test_trial_testfunction_skip_property(self, testdir): argument
587 testpath = testdir.makepyfile(
596 reprec = testdir.inline_run(testpath, "-s")
599 def test_trial_testcase_todo_property(self, testdir): argument
600 testpath = testdir.makepyfile(
609 reprec = testdir.inline_run(testpath, "-s")
612 def test_trial_testfunction_todo_property(self, testdir): argument
613 testpath = testdir.makepyfile(
622 reprec = testdir.inline_run(
628 def test_djangolike_testcase(testdir): argument
630 testdir.makepyfile(
673 result = testdir.runpytest("-s")
686 def test_unittest_not_shown_in_traceback(testdir): argument
687 testdir.makepyfile(
696 res = testdir.runpytest()
700 def test_unorderable_types(testdir): argument
701 testdir.makepyfile(
715 result = testdir.runpytest()
720 def test_unittest_typerror_traceback(testdir): argument
721 testdir.makepyfile(
729 result = testdir.runpytest()
735 def test_unittest_expected_failure_for_failing_test_is_xfail(testdir, runner): argument
736 script = testdir.makepyfile(
748 result = testdir.runpytest("-rxX")
753 result = testdir.runpython(script)
759 def test_unittest_expected_failure_for_passing_test_is_fail(testdir, runner): argument
760 script = testdir.makepyfile(
775 result = testdir.runpytest("-rxX")
783 result = testdir.runpython(script)
792 def test_unittest_setup_interaction(testdir, fix_type, stmt): argument
793 testdir.makepyfile(
820 result = testdir.runpytest()
824 def test_non_unittest_no_setupclass_support(testdir): argument
825 testpath = testdir.makepyfile(
846 reprec = testdir.inline_run(testpath)
850 def test_no_teardown_if_setupclass_failed(testdir): argument
851 testpath = testdir.makepyfile(
874 reprec = testdir.inline_run(testpath)
878 def test_issue333_result_clearing(testdir): argument
879 testdir.makeconftest(
888 testdir.makepyfile(
897 reprec = testdir.inline_run()
901 def test_unittest_raise_skip_issue748(testdir): argument
902 testdir.makepyfile(
911 result = testdir.runpytest("-v", "-rs")
920 def test_unittest_skip_issue1169(testdir): argument
921 testdir.makepyfile(
931 result = testdir.runpytest("-v", "-rs")
940 def test_class_method_containing_test_issue1558(testdir): argument
941 testdir.makepyfile(
953 reprec = testdir.inline_run()
960 def test_usefixtures_marker_on_unittest(base, testdir): argument
964 testdir.makepyfile(
993 testdir.makepyfile(
1018 result = testdir.runpytest("-s")
1022 def test_testcase_handles_init_exceptions(testdir): argument
1027 testdir.makepyfile(
1038 result = testdir.runpytest()
1043 def test_error_message_with_parametrized_fixtures(testdir): argument
1044 testdir.copy_example("unittest/test_parametrized_fixture_error_message.py")
1045 result = testdir.runpytest()
1063 def test_setup_inheritance_skipping(testdir, test_name, expected_outcome): argument
1065 testdir.copy_example("unittest/{}".format(test_name))
1066 result = testdir.runpytest()