def setUp(self): CanvasTestCase.setUp(self) # Grab a limited availability sticker self.sticker = stickers.Sticker(1234, "test", cost=10, maximum=100) # Call stickers.add_sticker so that we can use the sticker by id in api calls. stickers.add_sticker(self.sticker)
def setUp(self): CanvasTestCase.setUp(self) # Grab a limited availability sticker self.sticker = stickers.Sticker(1234, "test", cost=10, maximum=100) # Call stickers.add_sticker so that we can use the sticker by id in api calls. stickers.add_sticker(self.sticker)
def setUp(self): CanvasTestCase.setUp(self) self.group = create_group() self.data = { 'group_name': self.group.name, 'group_description': 'lolhacked1' }
def setUp(self): CanvasTestCase.setUp(self) self.group = create_group() self.original = create_content() self.op = self.post_comment(reply_content=self.original.id, category=self.group.name) self.remix = create_content() self.remix.remix_of = self.original self.remix.save()
def setUp(self): CanvasTestCase.setUp(self) self.sticker = stickers.Sticker(1234, "foobar", limited=True, maximum=10, cost=10) stickers.add_sticker(self.sticker)
def setUp(self): CanvasTestCase.setUp(self) self.group = create_group() self.original = create_content() self.op = self.post_comment(reply_content=self.original.id, category=self.group.name) self.remix = create_content() self.remix.remix_of = self.original self.remix.save()
def setUp(self): CanvasTestCase.setUp(self) self.group = create_group(founder=create_user()) self.content = create_content() self.text = 'foo bar baz lol what' self.op = self.post_comment(reply_content=self.content.id, category=self.group.name, reply_text=self.text) self.user = create_user() # It would be great to at some point make some kind of "with configOverride(foo=new_value):" self.previousConfig = copy.deepcopy(configuration.Config) Config['minimum_top_replies'] = 1 Config['maximum_top_replies'] = 2 Config['posts_per_top_reply'] = 2 self._per_page = knobs.COMMENTS_PER_PAGE knobs.COMMENTS_PER_PAGE = 2
def setUp(self): CanvasTestCase.setUp(self) self.group = create_group(founder=create_user()) self.content = create_content() self.text = 'foo bar baz lol what' self.op = self.post_comment(reply_content=self.content.id, category=self.group.name, reply_text=self.text) self.user = create_user() # It would be great to at some point make some kind of "with configOverride(foo=new_value):" self.previousConfig = copy.deepcopy(configuration.Config) Config['minimum_top_replies'] = 1 Config['maximum_top_replies'] = 2 Config['posts_per_top_reply'] = 2 self._per_page = knobs.COMMENTS_PER_PAGE knobs.COMMENTS_PER_PAGE = 2
def setUp(self): CanvasTestCase.setUp(self) self.sticker = stickers.Sticker(11111, "test", cost=10, maximum=100) stickers.add_sticker(self.sticker)
def setUp(self): CanvasTestCase.setUp(self) self.user = create_user()
def setUp(self): CanvasTestCase.setUp(self) self.user = create_user() self.comment = self.post_comment(reply_content=create_content().id)
def setUp(self): CanvasTestCase.setUp(self) self.user = create_user() self.comment = self.post_comment(reply_content=create_content().id)
def setUp(self): CanvasTestCase.setUp(self) self.user = create_user()
def setUp(self): CanvasTestCase.setUp(self) self.group = create_group() self.data = {'group_name': self.group.name, 'group_description': 'lolhacked1'}
def setUp(self): CanvasTestCase.setUp(self) self.user = create_user() self.request = FakeRequest(self.user)
def setUp(self): CanvasTestCase.setUp(self) self.sticker = stickers.Sticker(11111, "test", cost=10, maximum=100) stickers.add_sticker(self.sticker)
def setUp(self): CanvasTestCase.setUp(self) self.sticker = stickers.Sticker(1234, "foobar", limited=True, maximum=10, cost=10) stickers.add_sticker(self.sticker)
def setUp(self): CanvasTestCase.setUp(self) self.user = create_user(is_qa=False) self.request = FakeRequest(self.user)