예제 #1
0
    def setUp(self):
        self.username = '******'
        self.user = util.create_one_User_instance(self.username)
        self.client.force_authenticate(user=self.user)

        self.card = util.create_one_Card_instance()
        self.category = util.create_one_Category_instance(self.user, self.card.id, 'category')

        another_user = util.create_one_User_instance('another_user')
        another_category = util.create_one_Category_instance(another_user, self.card.id, 'another_category')
        util.create_one_HanziStudyCount_instance(another_user, another_category, 10)
예제 #2
0
 def setUp(self):
     self.username = '******'
     self.user = util.create_one_User_instance(self.username)
     self.client.force_authenticate(user=self.user)
예제 #3
0
 def setUp(self):
     self.username = '******'
     self.user = util.create_one_User_instance(self.username)
     self.client.force_authenticate(user=self.user)