def setUp(self): super().setUp() self.instance = FactoryFloor.InstrumentFactory() self.test_url = reverse_lazy('cruises:instrument_detail', args=[ self.instance.pk, ]) self.expected_template = 'cruises/instrument_detail.html' self.user = self.get_and_login_user()
def setUp(self): super().setUp() self.instance = FactoryFloor.InstrumentFactory() self.test_url = reverse_lazy('cruises:instrument_edit', args=[ self.instance.pk, ]) self.expected_template = 'cruises/form.html' self.user = self.get_and_login_user(in_group="oceanography_admin")
def setUp(self): super().setUp() self.instance = FactoryFloor.FileFactory() self.test_url = reverse_lazy('cruises:file_edit', args=[ self.instance.pk, ]) self.expected_template = 'shared_models/generic_popout_form.html' self.user = self.get_and_login_user(in_group="oceanography_admin")