def setUpClass(cls): backend = papis.config.get('database-backend') tests.setup_test_library() papis.config.set('database-backend', backend) libdir = papis.config.get_lib().paths[0] assert (os.path.exists(libdir)) assert (papis.config.get_lib_name() == tests.get_test_lib_name()) database = papis.database.get(papis.config.get_lib_name()) database.clear() database.initialize() assert (database is not None)
def test_check_database(self): database = papis.database.get() self.assertTrue(database is not None) self.assertTrue(database.get_lib() == tests.get_test_lib_name())
def test_lib_is_correct(self): assert (papis.config.utils.get_lib_name() == tests.get_test_lib_name())
def setUp(self): from click.testing import CliRunner self.runner = CliRunner() self.assertTrue( papis.config.get_lib_name() == tests.get_test_lib_name())