py.test - Can I use single conftest.py for different test directories? -


here test directory:

test/     unit/         test files          conftest.py     acceptance/         test files         conftest.py 

right there 2 conftest files fixtures. can combine them 1 conftest.py file? if yes, should keep common conftest.py?

you can combine fixtures conftest.py file within top-level test directory. per this documentation, conftest files per directory. conftest file (and fixtures , plugins therein) should available test files in directory , in child directories. if that, recommend making test directory python package adding __init__.py file (per the note in documentation).


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -