File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,20 @@ def test_timeout():
472
472
pytester .runpytest_subprocess (testfile , timeout = 1 )
473
473
474
474
475
+ def test_pytester_subprocess_with_plugins (pytester : Pytester ) -> None :
476
+ testfile = pytester .makepyfile (
477
+ """
478
+ def test_plugins(pytestconfig):
479
+ plugins = pytestconfig.pluginmanager.list_name_plugin()
480
+ assert ("plug_1", None) in plugins
481
+ assert ("plug_2", None) in plugins
482
+ """
483
+ )
484
+ pytester .plugins .extend (["no:plug_1" , "no:plug_2" ])
485
+
486
+ pytester .runpytest_subprocess ().assert_outcomes (passed = 1 )
487
+
488
+
475
489
def test_linematcher_with_nonlist () -> None :
476
490
"""Test LineMatcher with regard to passing in a set (accidentally)."""
477
491
from _pytest ._code .source import Source
You can’t perform that action at this time.
0 commit comments