servo/tests/wpt/css-tests/tools/pytest/doc/en/naming20.rst
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

20 lines
718 B
ReStructuredText

.. _naming20:
New pytest names in 2.0 (flat is better than nested)
----------------------------------------------------
If you used older version of the ``py`` distribution (which
included the py.test command line tool and Python name space)
you accessed helpers and possibly collection classes through
the ``py.test`` Python namespaces. The new ``pytest``
Python module flaty provides the same objects, following
these renaming rules::
py.test.XYZ -> pytest.XYZ
py.test.collect.XYZ -> pytest.XYZ
py.test.cmdline.main -> pytest.main
The old ``py.test.*`` ways to access functionality remain
valid but you are encouraged to do global renaming according
to the above rules in your test code.