File: __init__.py

package info (click to toggle)
python-oslo.privsep 3.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472 kB
  • sloc: python: 1,517; makefile: 28; sh: 12
file content (8 lines) | stat: -rw-r--r-- 214 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
import os.path


def load_tests(loader, tests, pattern):
    this_dir = os.path.dirname(__file__)
    new_tests = loader.discover(start_dir=this_dir, pattern=pattern)
    tests.addTests(new_tests)
    return tests