Esempio n. 1
0
 def setUp(self):
     super(BaseUploadVersionCase, self).setUp()
     self.guid = '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}'
     self.view = VersionView.as_view()
     patcher = mock.patch('devhub.tasks.create_version_for_upload',
                          tasks.create_version_for_upload.non_atomic)
     self.create_version_for_upload = patcher.start()
     self.addCleanup(patcher.stop)
Esempio n. 2
0
 def setUp(self):
     super(BaseUploadVersionCase, self).setUp()
     self.guid = '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}'
     self.view = VersionView.as_view()
     patcher = mock.patch('devhub.tasks.create_version_for_upload',
                          tasks.create_version_for_upload.non_atomic)
     self.create_version_for_upload = patcher.start()
     self.addCleanup(patcher.stop)
Esempio n. 3
0
 def setUp(self):
     super(BaseUploadVersionCase, self).setUp()
     self.guid = '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}'
     self.view = VersionView.as_view()
Esempio n. 4
0
 def setUp(self):
     super(BaseUploadVersionCase, self).setUp()
     self.guid = '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}'
     self.view = VersionView.as_view()
Esempio n. 5
0
 def setUp(self):
     self.user = UserProfile.objects.get(email='*****@*****.**')
     self.api_key = self.create_api_key(self.user, 'foo')
     self.guid = '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}'
     self.view = VersionView.as_view()
Esempio n. 6
0
 def setUp(self):
     self.user = UserProfile.objects.get(email='*****@*****.**')
     self.api_key = self.create_api_key(self.user, 'foo')
     self.guid = '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}'
     self.view = VersionView.as_view()