diff --git a/src/GrampsDbUtils/_WriteGrdb.py b/src/GrampsDbUtils/_WriteGrdb.py index 44e01c92d..03ce22f38 100644 --- a/src/GrampsDbUtils/_WriteGrdb.py +++ b/src/GrampsDbUtils/_WriteGrdb.py @@ -35,7 +35,7 @@ from gettext import gettext as _ # Gramps Modules # #------------------------------------------------------------------------- -from _GrampsBSDDB import GrampsBSDDB +from GrampsDb._GrampsBSDDB import GrampsBSDDB from QuestionDialog import ErrorDialog from gen.utils import db_copy diff --git a/src/GrampsDbUtils/test/_GrampsDbWRFactories_test.py b/src/GrampsDbUtils/test/_GrampsDbWRFactories_test.py new file mode 100644 index 000000000..9a09806af --- /dev/null +++ b/src/GrampsDbUtils/test/_GrampsDbWRFactories_test.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python +import unittest + +from test import test_util as tu +tu.path_append_parent() + +### +class Test1(unittest.TestCase): + """Test imports which are buried within functions + otherwise they may not get timely test coverage + + NB: if any test fails, check imports within that module + + """ + def test1a_buried_imports(s): + ilist = ( + "_WriteGrdb", + "_WriteXML", + "_WriteGedcom", + "_ReadXML", + "_ReadGedcom", + ) + for m in ilist: + try: + mod = __import__(m) + except ImportError: + mod = None + s.assertTrue(mod, "try import of module %r" % m) + +if __name__ == "__main__": + unittest.main() +#===eof===