@@ -374,10 +374,10 @@ def assert_outcomes(self, passed=0, skipped=0, failed=0):
374
374
375
375
376
376
class Testdir :
377
- """Temporary test directory with tools to test/run py.test itself.
377
+ """Temporary test directory with tools to test/run pytest itself.
378
378
379
379
This is based on the ``tmpdir`` fixture but provides a number of
380
- methods which aid with testing py.test itself. Unless
380
+ methods which aid with testing pytest itself. Unless
381
381
:py:meth:`chdir` is used all methods will use :py:attr:`tmpdir` as
382
382
current working directory.
383
383
@@ -588,7 +588,7 @@ def getpathnode(self, path):
588
588
"""Return the collection node of a file.
589
589
590
590
This is like :py:meth:`getnode` but uses
591
- :py:meth:`parseconfigure` to create the (configured) py.test
591
+ :py:meth:`parseconfigure` to create the (configured) pytest
592
592
Config instance.
593
593
594
594
:param path: A :py:class:`py.path.local` instance of the file.
@@ -656,7 +656,7 @@ def inline_genitems(self, *args):
656
656
:py:class:`HookRecorder` instance.
657
657
658
658
This runs the :py:func:`pytest.main` function to run all of
659
- py.test inside the test process itself like
659
+ pytest inside the test process itself like
660
660
:py:meth:`inline_run`. However the return value is a tuple of
661
661
the collection items and a :py:class:`HookRecorder` instance.
662
662
@@ -669,7 +669,7 @@ def inline_run(self, *args, **kwargs):
669
669
"""Run ``pytest.main()`` in-process, returning a HookRecorder.
670
670
671
671
This runs the :py:func:`pytest.main` function to run all of
672
- py.test inside the test process itself. This means it can
672
+ pytest inside the test process itself. This means it can
673
673
return a :py:class:`HookRecorder` instance which gives more
674
674
detailed results from then run then can be done by matching
675
675
stdout/stderr from :py:meth:`runpytest`.
@@ -755,9 +755,9 @@ def _ensure_basetemp(self, args):
755
755
return args
756
756
757
757
def parseconfig (self , * args ):
758
- """Return a new py.test Config instance from given commandline args.
758
+ """Return a new pytest Config instance from given commandline args.
759
759
760
- This invokes the py.test bootstrapping code in _pytest.config
760
+ This invokes the pytest bootstrapping code in _pytest.config
761
761
to create a new :py:class:`_pytest.core.PluginManager` and
762
762
call the pytest_cmdline_parse hook to create new
763
763
:py:class:`_pytest.config.Config` instance.
@@ -777,7 +777,7 @@ def parseconfig(self, *args):
777
777
return config
778
778
779
779
def parseconfigure (self , * args ):
780
- """Return a new py.test configured Config instance.
780
+ """Return a new pytest configured Config instance.
781
781
782
782
This returns a new :py:class:`_pytest.config.Config` instance
783
783
like :py:meth:`parseconfig`, but also calls the
@@ -792,7 +792,7 @@ def parseconfigure(self, *args):
792
792
def getitem (self , source , funcname = "test_func" ):
793
793
"""Return the test item for a test function.
794
794
795
- This writes the source to a python file and runs py.test 's
795
+ This writes the source to a python file and runs pytest 's
796
796
collection on the resulting module, returning the test item
797
797
for the requested function name.
798
798
@@ -812,7 +812,7 @@ def getitem(self, source, funcname="test_func"):
812
812
def getitems (self , source ):
813
813
"""Return all test items collected from the module.
814
814
815
- This writes the source to a python file and runs py.test 's
815
+ This writes the source to a python file and runs pytest 's
816
816
collection on the resulting module, returning all test items
817
817
contained within.
818
818
@@ -824,7 +824,7 @@ def getmodulecol(self, source, configargs=(), withinit=False):
824
824
"""Return the module collection node for ``source``.
825
825
826
826
This writes ``source`` to a file using :py:meth:`makepyfile`
827
- and then runs the py.test collection on it, returning the
827
+ and then runs the pytest collection on it, returning the
828
828
collection node for the test module.
829
829
830
830
:param source: The source code of the module to collect.
@@ -924,7 +924,7 @@ def _dump_lines(self, lines, fp):
924
924
925
925
def _getpytestargs (self ):
926
926
# we cannot use "(sys.executable,script)"
927
- # because on windows the script is e.g. a py.test .exe
927
+ # because on windows the script is e.g. a pytest .exe
928
928
return (sys .executable , _pytest_fullpath ,) # noqa
929
929
930
930
def runpython (self , script ):
@@ -939,7 +939,7 @@ def runpython_c(self, command):
939
939
return self .run (sys .executable , "-c" , command )
940
940
941
941
def runpytest_subprocess (self , * args , ** kwargs ):
942
- """Run py.test as a subprocess with given arguments.
942
+ """Run pytest as a subprocess with given arguments.
943
943
944
944
Any plugins added to the :py:attr:`plugins` list will added
945
945
using the ``-p`` command line option. Addtionally
@@ -967,9 +967,9 @@ def runpytest_subprocess(self, *args, **kwargs):
967
967
return self .run (* args )
968
968
969
969
def spawn_pytest (self , string , expect_timeout = 10.0 ):
970
- """Run py.test using pexpect.
970
+ """Run pytest using pexpect.
971
971
972
- This makes sure to use the right py.test and sets up the
972
+ This makes sure to use the right pytest and sets up the
973
973
temporary directory locations.
974
974
975
975
The pexpect child is returned.
0 commit comments