From 6a4c7063fdbcb20ce209ca566ede9366842f531c Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 23 Feb 2019 15:22:27 -0300 Subject: [PATCH] Fix docs about pytest conventions for test functions Fix #4818 --- doc/en/goodpractices.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/goodpractices.rst b/doc/en/goodpractices.rst index ba79e71f4..f08bd5c40 100644 --- a/doc/en/goodpractices.rst +++ b/doc/en/goodpractices.rst @@ -42,8 +42,8 @@ Conventions for Python test discovery * In those directories, search for ``test_*.py`` or ``*_test.py`` files, imported by their `test package name`_. * From those files, collect test items: - * ``test_`` prefixed test functions or methods outside of class - * ``test_`` prefixed test functions or methods inside ``Test`` prefixed test classes (without an ``__init__`` method) + * ``test`` prefixed test functions or methods outside of class + * ``test`` prefixed test functions or methods inside ``Test`` prefixed test classes (without an ``__init__`` method) For examples of how to customize your test discovery :doc:`example/pythoncollection`.