File tree 1 file changed +8
-9
lines changed 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,14 @@ run using ``pytest``. We assume here that you are familiar with writing
17
17
``unittest.TestCase `` style tests and rather focus on
18
18
integration aspects.
19
19
20
+ Note that this is meant as a provisional way of running your test code
21
+ until you fully convert to pytest-style tests. To fully take advantage of
22
+ :ref: `fixtures <fixture >`, :ref: `parametrization <parametrize >` and
23
+ :ref: `hooks <writing-plugins >` you should convert (tools like `unittest2pytest
24
+ <https://pypi.python.org/pypi/unittest2pytest/> `__ are helpful).
25
+ Also, not all 3rd party pluging are expected to work best with
26
+ ``unittest.TestCase `` style tests.
27
+
20
28
Usage
21
29
-------------------------------------------------------------------
22
30
@@ -191,12 +199,3 @@ was executed ahead of the ``test_method``.
191
199
pytest fixtures into unittest suites. And of course you can also start
192
200
to selectively leave away the ``unittest.TestCase `` subclassing, use
193
201
plain asserts and get the unlimited pytest feature set.
194
-
195
-
196
- Converting from unittest to pytest
197
- ---------------------------------------
198
-
199
- If you want to convert your unittest testcases to pytest, there are
200
- some helpers like `unittest2pytest
201
- <https://pypi.python.org/pypi/unittest2pytest/> `__, which uses lib2to3
202
- and introspection for the transformation.
You can’t perform that action at this time.
0 commit comments