Add testdir fixture to reference
This commit is contained in:
		
							parent
							
								
									66009b0f91
								
							
						
					
					
						commit
						f1df6c5a60
					
				|  | @ -250,20 +250,6 @@ Full reference to objects accessible from :ref:`fixtures <fixture>` or hooks | ||||||
| .. autoclass:: pluggy.PluginManager() | .. autoclass:: pluggy.PluginManager() | ||||||
|     :members: |     :members: | ||||||
| 
 | 
 | ||||||
| .. currentmodule:: _pytest.pytester |  | ||||||
| 
 |  | ||||||
| .. autoclass:: Testdir() |  | ||||||
|     :members: runpytest,runpytest_subprocess,runpytest_inprocess,makeconftest,makepyfile |  | ||||||
| 
 |  | ||||||
| .. autoclass:: RunResult() |  | ||||||
|     :members: |  | ||||||
| 
 |  | ||||||
| .. autoclass:: LineMatcher() |  | ||||||
|     :members: |  | ||||||
| 
 |  | ||||||
| .. autoclass:: _pytest.capture.CaptureFixture() |  | ||||||
|     :members: |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| Fixtures | Fixtures | ||||||
| -------- | -------- | ||||||
|  | @ -465,13 +451,37 @@ caplog | ||||||
| monkeypatch | monkeypatch | ||||||
| ~~~~~~~~~~~ | ~~~~~~~~~~~ | ||||||
| 
 | 
 | ||||||
|  | .. currentmodule:: _pytest.monkeypatch | ||||||
|  | 
 | ||||||
| **Tutorial**: :doc:`monkeypatch`. | **Tutorial**: :doc:`monkeypatch`. | ||||||
| 
 | 
 | ||||||
| .. autofunction:: _pytest.monkeypatch.monkeypatch() | .. autofunction:: _pytest.monkeypatch.monkeypatch() | ||||||
|     :no-auto-options: |     :no-auto-options: | ||||||
| 
 | 
 | ||||||
|     This returns a :class:`_pytest.monkeypatch.MonkeyPatch` instance. |     This returns a :class:`MonkeyPatch` instance. | ||||||
| 
 | 
 | ||||||
| .. autoclass:: _pytest.monkeypatch.MonkeyPatch | .. autoclass:: _pytest.monkeypatch.MonkeyPatch | ||||||
|     :members: |     :members: | ||||||
| 
 | 
 | ||||||
|  | testdir | ||||||
|  | ~~~~~~~ | ||||||
|  | 
 | ||||||
|  | .. currentmodule:: _pytest.pytester | ||||||
|  | 
 | ||||||
|  | This fixture provides a :class:`Testdir` instance useful for black-box testing of test files, making it ideal to | ||||||
|  | test plugins. | ||||||
|  | 
 | ||||||
|  | To use it, include in your top-most ``conftest.py`` file:: | ||||||
|  | 
 | ||||||
|  |     pytest_plugins = 'pytester' | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | .. autoclass:: Testdir() | ||||||
|  |     :members: runpytest,runpytest_subprocess,runpytest_inprocess,makeconftest,makepyfile | ||||||
|  | 
 | ||||||
|  | .. autoclass:: RunResult() | ||||||
|  |     :members: | ||||||
|  | 
 | ||||||
|  | .. autoclass:: LineMatcher() | ||||||
|  |     :members: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue