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)
def setUp(self): super(BaseUploadVersionCase, self).setUp() self.guid = '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}' self.view = VersionView.as_view()
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()