File: my_unittest2.py

package info (click to toggle)
python-bioblend 0.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 800 kB
  • sloc: python: 5,195; sh: 217; makefile: 139
file content (10 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import os
import sys
from unittest2.loader import defaultTestLoader


def collector():
    # import __main__ triggers code re-execution
    __main__ = sys.modules['__main__']
    setupDir = os.path.abspath(os.path.dirname(__main__.__file__))
    return defaultTestLoader.discover(setupDir + '/tests', pattern='Test*.py')