示例#1
0
 def test_versions_addons_generation(self):
     num_appversions = AppVersion.objects.all().count()
     generate_version(self.addon, APPS['android'])
     eq_(Version.objects.all().count(), 1)
     eq_(File.objects.all().count(), 1)
     eq_(AppVersion.objects.all().count(), num_appversions + 2)
     eq_(ApplicationsVersions.objects.all().count(), 1)
示例#2
0
 def test_versions_addons_generation(self):
     num_appversions = AppVersion.objects.all().count()
     generate_version(self.addon, APPS['android'])
     eq_(Version.objects.all().count(), 1)
     eq_(File.objects.all().count(), 1)
     eq_(AppVersion.objects.all().count(), num_appversions + 2)
     eq_(ApplicationsVersions.objects.all().count(), 1)
示例#3
0
 def test_versions_themes_generation(self):
     num_appversions = AppVersion.objects.all().count()
     generate_version(self.addon)
     eq_(Version.objects.all().count(), 1)
     eq_(File.objects.all().count(), 1)
     eq_(AppVersion.objects.all().count(), num_appversions)
     eq_(ApplicationsVersions.objects.all().count(), 0)
示例#4
0
 def test_versions_themes_generation(self):
     num_appversions = AppVersion.objects.all().count()
     generate_version(self.addon)
     eq_(Version.objects.all().count(), 1)
     eq_(File.objects.all().count(), 1)
     eq_(AppVersion.objects.all().count(), num_appversions)
     eq_(ApplicationsVersions.objects.all().count(), 0)