Skip to content

pmeier/pytest-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-import

This is a proof-of-concept for pytest-dev/pytest#8964 (comment).

The idea is to import test packages on the requested test paths if pytest runs with --import-mode=importlib.

Demo

$ python setup.py develop
$ pytest --import-mode=importlib tests/

Although tests/test_foo.py features an import from tests/utils.py, we can pytest --import-mode=importlib tests/ without error.

About

Proof of concept for importing test packages when working with pytest's --import-mode=importlib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages