You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/contributing.rst
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -792,15 +792,15 @@ Transitioning to ``pytest``
792
792
.. code-block:: python
793
793
794
794
classTestReallyCoolFeature(object):
795
-
....
795
+
pass
796
796
797
797
Going forward, we are moving to a more *functional* style using the `pytest <http://docs.pytest.org/en/latest/>`__ framework, which offers a richer testing
798
798
framework that will facilitate testing and developing. Thus, instead of writing test classes, we will write test functions like this:
799
799
800
800
.. code-block:: python
801
801
802
802
deftest_really_cool_feature():
803
-
....
803
+
pass
804
804
805
805
Using ``pytest``
806
806
~~~~~~~~~~~~~~~~
@@ -825,25 +825,30 @@ We would name this file ``test_cool_feature.py`` and put in an appropriate place
0 commit comments