1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/8c0e79d2c8ca/
Changeset:   8c0e79d2c8ca
User:        hpk42
Date:        2014-01-23 15:25:01
Summary:     address issue416: clarify docs as to conftest.py loading semantics
Affected #:  2 files

diff -r 4377714d60a33dece691daff4b53062ee6780a35 -r 
8c0e79d2c8cab40e85e94d4193c0cafcba1b78d2 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -15,6 +15,9 @@
   correctly also on python2 and with pytest-xdist runs. (the fix
   requires py-1.4.20)
 
+- address issue416: clarify docs as to conftest.py loading semantics
+
+
 2.5.1
 -----------------------------------
 

diff -r 4377714d60a33dece691daff4b53062ee6780a35 -r 
8c0e79d2c8cab40e85e94d4193c0cafcba1b78d2 doc/en/plugins.txt
--- a/doc/en/plugins.txt
+++ b/doc/en/plugins.txt
@@ -177,9 +177,15 @@
   and loading the specified plugin before actual command line parsing.
 
 * by loading all :file:`conftest.py` files as inferred by the command line
-  invocation (test files and all of its *parent* directories).
-  Note that ``conftest.py`` files from *sub* directories are by default
-  not loaded at tool startup.
+  invocation:
+
+  - if no test paths are specified use current dir as a test path
+  - if exists, load ``conftest.py`` and ``test*/conftest.py`` relative 
+    to the directory part of the first test path. 
+
+  Note that pytest does not find ``conftest.py`` files in deeper nested
+  sub directories at tool startup.  It is usually a good idea to keep
+  your conftest.py file in the top level test or project root directory.
 
 * by recursively loading all plugins specified by the
   ``pytest_plugins`` variable in ``conftest.py`` files

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to