def test_get_latest_local_no_files_exist(self, dir_function): os.chdir(dir_function['path']) outputdir = helpers.normalize_outputdir() platform = helpers.get_platform() driver = Chromedriver(outputdir, 'linux', platform['os_bits']) latest_version = driver.get_latest_local_version() assert latest_version == '0.0'
def test_get_latest_local_version_chrome(self, dir_function, test_utils): os.chdir(dir_function['path']) outputdir = helpers.normalize_outputdir() platform = helpers.get_platform() test_utils.create_test_files(outputdir) driver = Chromedriver(outputdir, 'linux', platform['os_bits']) latest_version = driver.get_latest_local_version() assert latest_version == '2.3'