Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

__all__ = ["test_pydblite", "test_pydblite_sqlite"] 

 

 

def load_tests(loader, tests, pattern): 

    ''' Discover and load all unit tests in all files named ``*_test.py`` in ``./src/`` 

    ''' 

    import unittest 

    suite = unittest.TestSuite() 

    import unittest.loader 

    for all_test_suite in unittest.defaultTestLoader.discover( 

            ".", 

            pattern='test*.py' 

    ): 

        if "ModuleImportFailure" in str(all_test_suite): 

            print("Found ModuleImportFailure:", all_test_suite) 

            pass 

        else: 

            suite.addTests(all_test_suite) 

    return suite