Пример #1
0
 def setUp(self):
     self.users = AccountFactory.create_batch(2)
     self.follow_template = 'interactions/partials/_follow.html'
     self.star_template = 'interactions/partials/_star.html'
     self.follow_string = 'form class="interaction follow"'
     self.star_string = 'form class="interaction star"'
     self.entity = EntityFactory.create()
     self.budget = BudgetFactory.create()
     self.actual = ActualFactory.create()
     self.entityview = reverse('entity_detail', args=(self.entity.slug, ))
     self.budgetview = reverse('budget_detail', args=(self.budget.uuid, ))
     self.actualview = reverse('actual_detail', args=(self.actual.uuid, ))
Пример #2
0
 def setUp(self):
     self.users = AccountFactory.create_batch(2)
     self.follow_template = 'interactions/partials/_follow.html'
     self.star_template = 'interactions/partials/_star.html'
     self.follow_string = 'form class="interaction follow"'
     self.star_string = 'form class="interaction star"'
     self.entity = EntityFactory.create()
     self.budget = BudgetFactory.create()
     self.actual = ActualFactory.create()
     self.entityview = reverse(
             'entity_detail',
             args=(self.entity.slug,)
     )
     self.budgetview = reverse(
             'budget_detail',
             args=(self.budget.uuid,)
     )
     self.actualview = reverse(
             'actual_detail',
             args=(self.actual.uuid,)
     )
Пример #3
0
 def setUp(self):
     self.budget = BudgetFactory.create()
     self.actual = ActualFactory.create()
Пример #4
0
 def setUp(self):
     self.budget = BudgetFactory.create()
     self.actual = ActualFactory.create()