Ejemplo n.º 1
0
 def setUp(self):
     self.empty_resp = self.client.get(reverse('navigation_board_list'))
     self.boards = BoardFactory.create_batch(5)
     self.resp = self.client.get(reverse('navigation_board_list'))
     mod = ModeratorFactory.create_mod()
     self.client.force_login(mod)
     self.mod_resp = self.client.get(reverse('navigation_board_list'))
Ejemplo n.º 2
0
 def setUp(self): 
     self.boards = BoardFactory.create_batch(5)
     self.list_resp = self.client.get(reverse('api_board-list')) 
     self.board = BoardFactory()
     self.url = reverse('api_board-detail', kwargs={'slug': self.board.slug})
     self.detail_resp = self.client.get(self.url)
     self.post_data = {'name': faker.word(), 'description': faker.word(), 'slug': faker.word()}
Ejemplo n.º 3
0
 def setUp(self):
     self.boards = BoardFactory.create_batch(5)
     for board in self.boards:
         RuleFactory.create_batch(2, board=board)
     self.global_rules = RuleFactory.create_batch(2, board=None)
     self.resp = self.client.get(reverse('rules_rule_list'))
     self.global_rule_query = Rule.objects.filter(
         board=None)  #Must do this to bypass ordering shenanigans