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)
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