def setUp(self): self.driver = webdriver.Firefox() loginApp = LoginApp(self.driver) loginApp.login(self.driver) logger.info('Login Successful 1') self.exploreElements = ExploreElements(self.driver) self.siteElements = SiteElements(self.driver)
def setUp(self): self.driver = webdriver.Firefox() loginApp = LoginApp(self.driver) loginApp.login(self.driver) logger.info('Login Successful 2') self.exploreElements = ExploreElements(self.driver) self.siteElements = SiteElements(self.driver)
def test_suite(self): self.suite = unittest.TestSuite() self.suite.addTests([ unittest.defaultTestLoader.loadTestsFromTestCase(TestCase1), unittest.defaultTestLoader.loadTestsFromTestCase(TestCase2) ]) runner = unittest.TextTestRunner() logger.info("Test Suite Initiated") runner.run(self.suite)
unicode = str basestring = str if __name__ == '__main__': travis_matrixlist = [] basedir = os.path.dirname(os.path.realpath(__file__)) travis_template = os.path.join(basedir, '.travis.yml.template') travis = os.path.join(basedir, '.travis.yml') readme_template = os.path.join(basedir, 'README.md.template') readme = os.path.join(basedir, 'README.md') logger.start() logger.loglevel('INFO') logger.info('Updating shelves') debian_matrix_list, debian_readme_table = update_debian(basedir) latex_matrix_list, latex_readme_table = update_latex(basedir) python_matrix_list, python_readme_table = update_python(basedir) ruby_matrix_list, ruby_readme_table = update_ruby(basedir) node_matrix_list, node_readme_table = update_node(basedir) mongo_matrix_list, mongo_readme_table = update_mongo(basedir) postgres_matrix_list, postgres_readme_table = update_postgres(basedir) odoo_matrix_list, odoo_readme_table = update_odoo(basedir) logger.info('Writing Travis CI matrix') travis_matrixlist.extend(debian_matrix_list) travis_matrixlist.extend(latex_matrix_list) travis_matrixlist.extend(python_matrix_list) travis_matrixlist.extend(ruby_matrix_list)
if not sys.version_info < (3, ): unicode = str basestring = str if __name__ == '__main__': travis_matrixlist = [] basedir = os.path.dirname(os.path.realpath(__file__)) travis_template = os.path.join(basedir, '.travis.yml.template') travis = os.path.join(basedir, '.travis.yml') readme_template = os.path.join(basedir, 'README.md.template') readme = os.path.join(basedir, 'README.md') logger.start() logger.loglevel('INFO') logger.info('Updating shelves') debian_matrix_list, debian_readme_table = update_debian(basedir) latex_matrix_list, latex_readme_table = update_latex(basedir) python_matrix_list, python_readme_table = update_python(basedir) ruby_matrix_list, ruby_readme_table = update_ruby(basedir) node_matrix_list, node_readme_table = update_node(basedir) mongo_matrix_list, mongo_readme_table = update_mongo(basedir) postgres_matrix_list, postgres_readme_table = update_postgres(basedir) odoo_matrix_list, odoo_readme_table = update_odoo(basedir) php_matrix_list, php_readme_table = update_php(basedir) logger.info('Writing Travis CI matrix') travis_matrixlist.extend(debian_matrix_list) travis_matrixlist.extend(latex_matrix_list) travis_matrixlist.extend(python_matrix_list)
workflowsdir = os.path.join(basedir, '.github', 'workflows') gha_develop_template = os.path.join(workflowsdir, 'push-develop.yml.template') gha_master_template = os.path.join(workflowsdir, 'push-master.yml.template') gha_schedule_template = os.path.join(workflowsdir, 'schedule-master.yml.template') gha_develop = os.path.join(workflowsdir, 'push-develop.yml') gha_master = os.path.join(workflowsdir, 'push-master.yml') gha_schedule = os.path.join(workflowsdir, 'schedule-master.yml') readme_template = os.path.join(basedir, 'README.md.template') readme = os.path.join(basedir, 'README.md') logger.start() logger.loglevel('INFO') logger.info('Updating shelves') debian_matrix_list, debian_readme_table = update_debian(basedir) latex_matrix_list, latex_readme_table = update_latex(basedir) python_matrix_list, python_readme_table = update_python(basedir) ruby_matrix_list, ruby_readme_table = update_ruby(basedir) node_matrix_list, node_readme_table = update_node(basedir) mongo_matrix_list, mongo_readme_table = update_mongo(basedir) postgres_matrix_list, postgres_readme_table = update_postgres(basedir) odoo_matrix_list, odoo_readme_table = update_odoo(basedir) php_matrix_list, php_readme_table = update_php(basedir) logger.info('Writing github actions matrix') matrix.extend(debian_matrix_list) matrix.extend(latex_matrix_list) matrix.extend(python_matrix_list)