File: __init__.py

package info (click to toggle)
pygresql 1%3A5.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,340 kB
  • ctags: 2,187
  • sloc: python: 13,239; ansic: 4,975; makefile: 164
file content (21 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""PyGreSQL test suite.

You can specify your local database settings in LOCAL_PyGreSQL.py.
"""

try:
    import unittest2 as unittest  # for Python < 2.7
except ImportError:
    import unittest

if not (hasattr(unittest, 'skip')
        and hasattr(unittest.TestCase, 'setUpClass')
        and hasattr(unittest.TestCase, 'skipTest')
        and hasattr(unittest.TestCase, 'assertIn')):
    raise ImportError('Please install a newer version of unittest')


def discover():
    loader = unittest.TestLoader()
    suite = loader.discover('.')
    return suite