Exemplo n.º 1
0
 def setUp(self):
     self.border_station = BorderStationFactory.create()
     self.budget_calc_sheet = BorderStationBudgetCalculationFactory.create(
         border_station=self.border_station)
     self.superuser = SuperUserFactory.create()
     self.client = APIClient()
     self.client.force_authenticate(user=self.superuser)
Exemplo n.º 2
0
 def setUp(self):
     self.superuser = SuperUserFactory.create()
     BorderStationFactory.create()
     url = reverse("victiminterview_create")
     self.response = self.app.get(url, user=self.superuser)
     self.form = self.response.form