зеркало из https://github.com/mozilla/FlightDeck.git
Use settings.TEST_SDK instead in place of explicit version numbers in some tests that have been failing since SDK 1.13 was added to FlightDeck
This commit is contained in:
Родитель
8acf5b3553
Коммит
ac22138d73
|
@ -523,7 +523,7 @@ class PackageRevisionTest(TestCase):
|
||||||
assert os.path.isfile(self.zip_file)
|
assert os.path.isfile(self.zip_file)
|
||||||
|
|
||||||
def test_create_package_with_no_libs_in_sdk(self):
|
def test_create_package_with_no_libs_in_sdk(self):
|
||||||
sdk = SDK.objects.create(version='1.12', dir='addon-sdk-1.12')
|
sdk = SDK.objects.create(version=settings.LOWEST_APPROVED_SDK, dir=settings.TEST_SDK)
|
||||||
package = Package.objects.create(author=self.author, type='a')
|
package = Package.objects.create(author=self.author, type='a')
|
||||||
eq_(package.latest.sdk.id, sdk.id)
|
eq_(package.latest.sdk.id, sdk.id)
|
||||||
|
|
||||||
|
|
|
@ -490,8 +490,8 @@ require('b');
|
||||||
assert not os.path.isfile('%s.xpi' % self.target_basename)
|
assert not os.path.isfile('%s.xpi' % self.target_basename)
|
||||||
assert os.path.exists('%s.json' % self.target_basename)
|
assert os.path.exists('%s.json' % self.target_basename)
|
||||||
|
|
||||||
def test_building_xpi_with_1_12(self):
|
def test_building_xpi(self):
|
||||||
sdk = SDK.objects.create(version='1.12', dir='addon-sdk-1.12')
|
sdk = SDK.objects.create(version=settings.LOWEST_APPROVED_SDK, dir=settings.TEST_SDK)
|
||||||
package = Package.objects.create(author=self.author, type='a')
|
package = Package.objects.create(author=self.author, type='a')
|
||||||
|
|
||||||
tstart = time.time()
|
tstart = time.time()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче