def test_only_returns_release_win_x64_package(self): upload.PLATFORM = 'win32' os.environ['TARGET_ARCH'] = 'x64' pkgs = list( upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'release', '0.56.8')) self.assertEquals( pkgs, ['BraveBrowserSetup.exe', 'BraveBrowserStandaloneSetup.exe'])
def test_only_returns_nightly_darwin_packages(self): upload.PLATFORM = 'darwin' pkgs = list( upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'nightly', '0.50.8')) self.assertEquals( pkgs, sorted(['Brave-Browser-Nightly.dmg', 'Brave-Browser-Nightly.pkg']))
def test_only_returns_beta_win_ia32_package(self): upload.PLATFORM = 'win32' os.environ['TARGET_ARCH'] = 'ia32' pkgs = list( upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'beta', '0.56.8')) self.assertEquals(pkgs, [ 'BraveBrowserStandaloneBetaSetup32.exe', 'BraveBrowserBetaSetup32.exe' ])
def test_only_returns_release_linux_packages(self): upload.PLATFORM = 'linux' pkgs = list( upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'release', '0.50.8')) self.assertEquals( sorted(pkgs), sorted([ 'brave-browser-0.50.8-1.x86_64.rpm', 'brave-browser_0.50.8_amd64.deb' ]))
def test_only_returns_release_win_x86_packages(self): upload.PLATFORM = 'win32' pkgs = list(upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'release', '1.5.8', 'win32', 'x86')) self.assertEquals(pkgs, sorted(['brave_installer-ia32.exe', 'BraveBrowserSetup32.exe', 'BraveBrowserSilentSetup32.exe', 'BraveBrowserStandaloneSetup32.exe', 'BraveBrowserStandaloneSilentSetup32.exe', 'BraveBrowserStandaloneUntaggedSetup32.exe', 'BraveBrowserUntaggedSetup32.exe']))
def test_only_returns_dev_win_x64_packages(self): upload.PLATFORM = 'win32' pkgs = list(upload.get_brave_packages(os.path.join( self.get_pkgs_dir, upload.PLATFORM), 'dev', '1.5.8', 'win32')) self.assertEquals( pkgs, sorted(['brave_installer-x64.exe', 'BraveBrowserDevSetup.exe', 'BraveBrowserSilentDevSetup.exe', 'BraveBrowserStandaloneDevSetup.exe', 'BraveBrowserStandaloneSilentDevSetup.exe', 'BraveBrowserStandaloneUntaggedDevSetup.exe', 'BraveBrowserUntaggedDevSetup.exe']))
def test_only_returns_nightly_win_ia32_packages(self): upload.PLATFORM = 'win32' pkgs = list(upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'nightly', '1.5.8', 'win32', 'ia32')) self.assertEquals( pkgs, sorted(['brave_installer-ia32.exe', 'BraveBrowserNightlySetup32.exe', 'BraveBrowserSilentNightlySetup32.exe', 'BraveBrowserStandaloneNightlySetup32.exe', 'BraveBrowserStandaloneSilentNightlySetup32.exe', 'BraveBrowserStandaloneUntaggedNightlySetup32.exe', 'BraveBrowserUntaggedNightlySetup32.exe']))
def test_only_returns_dev_win_ia32_package(self): upload.PLATFORM = 'win32' os.environ['TARGET_ARCH'] = 'ia32' pkgs = list( upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'dev', '0.56.8')) self.assertEquals( sorted(pkgs), sorted([ 'BraveBrowserDevSetup32.exe', 'BraveBrowserStandaloneDevSetup32.exe' ]))
def test_only_returns_android_packages(self): upload.PLATFORM = 'linux' pkgs = list(upload.get_brave_packages(os.path.join(self.get_pkgs_dir, 'android'), 'nightly', '1.5.8', 'android', '')) self.assertEquals(pkgs, sorted(['BraveModernarm.apk', 'BraveModernx86.apk', 'BraveMonoarm.apk', 'BraveMonoarm64.apk', 'BraveMonox64.apk', 'BraveMonox86.apk', 'Bravearm.apk', 'Bravex86.apk']))
def test_only_returns_release_win_ia32_packages(self): upload.PLATFORM = 'win32' os.environ['TARGET_ARCH'] = 'ia32' pkgs = list( upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'release', '0.56.8')) self.assertEquals( pkgs, sorted([ 'BraveBrowserSetup32.exe', 'BraveBrowserSilentSetup32.exe', 'BraveBrowserStandaloneSetup32.exe', 'BraveBrowserStandaloneSilentSetup32.exe', 'BraveBrowserStandaloneUntaggedSetup32.exe', 'BraveBrowserUntaggedSetup32.exe' ]))
def test_only_returns_beta_win_x64_packages(self): upload.PLATFORM = 'win32' os.environ['TARGET_ARCH'] = 'x64' pkgs = list( upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'beta', '0.56.8')) self.assertEquals( pkgs, sorted([ 'BraveBrowserBetaSetup.exe', 'BraveBrowserSilentBetaSetup.exe', 'BraveBrowserStandaloneBetaSetup.exe', 'BraveBrowserStandaloneSilentBetaSetup.exe', 'BraveBrowserStandaloneUntaggedBetaSetup.exe', 'BraveBrowserUntaggedBetaSetup.exe' ]))
def test_only_returns_beta_darwin_package(self): upload.PLATFORM = 'darwin' pkgs = list(upload.get_brave_packages( os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'beta', '1.5.8', 'darwin')) self.assertEquals(pkgs, sorted( ['Brave-Browser-Beta.dmg', 'Brave-Browser-Beta.pkg']))
def test_only_returns_release_darwin_package(self): upload.PLATFORM = 'darwin' pkgs = list(upload.get_brave_packages(os.path.join(self.get_pkgs_dir, upload.PLATFORM), 'release', '0.50.8')) self.assertEquals(pkgs, ['Brave-Browser.dmg', 'Brave-Browser.pkg'])