def setUp(self): self.extension = extension_factory() self.version = self.extension.latest_version self.user = UserProfile.objects.get(email="*****@*****.**") self.thread = CommunicationThread.objects.create(_extension=self.extension, _extension_version=self.version) self.author = user_factory(email="lol") self.note = CommunicationNote.objects.create(thread=self.thread, author=self.author, note_type=0, body="xyz")
def setUp(self): super(TestUserHasPermNoteExtensions, self).setUp() self.extension = extension_factory() self.developer = user_factory() self.developer.extension_set.add(self.extension) self.reviewer = user_factory() self.grant_permission(self.reviewer, 'ContentTools: AddonReview') self.thread = CommunicationThread.objects.create( _extension=self.extension, _extension_version=self.extension.latest_version)
def setUp(self): super(TestUserHasPermNoteExtensions, self).setUp() self.extension = extension_factory() self.developer = user_factory() self.developer.extension_set.add(self.extension) self.reviewer = user_factory() self.grant_permission(self.reviewer, "ContentTools: AddonReview") self.thread = CommunicationThread.objects.create( _extension=self.extension, _extension_version=self.extension.latest_version )
def setUp(self): self.extension = extension_factory() self.version = self.extension.latest_version self.user = UserProfile.objects.get(email='*****@*****.**') self.thread = CommunicationThread.objects.create( _extension=self.extension, _extension_version=self.version) self.author = user_factory(email='lol') self.note = CommunicationNote.objects.create(thread=self.thread, author=self.author, note_type=0, body='xyz')