Auto Discover modules in python
Install with pip:
$ pip install autodiscover
from pathlib import Path
from autodiscover import AutoDiscover
path = Path('path/to/module')
autodiscover = AutoDiscover(path)
autodiscover()
from pathlib import Path
from autodiscover import AutoDiscover
path = Path('path/to/module')
autodiscover = AutoDiscover(path, pattern="models.py")
autodiscover()
it will import all models.py from given path
$ python -m unittest