Source code for odoo_xmlrpc_twisted.test.test_get_settings_odoo
"""test program for module :func:`odoo_xmlrpc_twisted.functions.get_settings_odoo`based on the "unittest" functionality"""importunittestimportosimportsysimportconfigparser# Import base test case for shared Odoo connectionfromodoo_xmlrpc_twisted.test.base_test_caseimportReadOnlyOdooTestCase# as this program is in the folder "test",# import the module to test from the parent directorycurrent=os.path.dirname(os.path.realpath(__file__))parent_directory=os.path.dirname(current)sys.path.append(parent_directory)sys.path.append(os.path.join(parent_directory,'functions'))fromget_settings_odooimportget_settings_odoo
[docs]classtest_get_settings_odoo(ReadOnlyOdooTestCase):""" Class for the test cases of the module "get_settings_odoo" """
[docs]deftest_cases(self):""" test cases of the module "get_settings_odoo" """self.assertTrue(get_settings_odoo())