def setUp(self): super(ViewsEmptyTestCase, self).setUp() user = UserFactory(password='******') user.is_superuser = True user.save() self.assertTrue( self.client.login(username=user.username, password='******'))
def setUp(self): super(ViewsNonEmptyTestCase, self).setUp() user = UserFactory(password='******') user.is_superuser = True user.save() self.assertTrue(self.client.login(username=user.username, password='******')) phase = 'in-person' self.input_arguments['phase'] = phase with override_settings(ROLLGEN_OUTPUT_DIR=self.faux_output_dir): self.job = Job(phase, [self.center], self.input_arguments, self.user.username, self.output_path) self.job.generate_rolls() self.dirname = os.path.basename(self.job.output_path)
def setUp(self): super(ViewsNonEmptyTestCase, self).setUp() user = UserFactory(password='******') user.is_superuser = True user.save() self.assertTrue( self.client.login(username=user.username, password='******')) phase = 'in-person' self.input_arguments['phase'] = phase with override_settings(ROLLGEN_OUTPUT_DIR=self.faux_output_dir): self.job = Job(phase, [self.center], self.input_arguments, self.user.username, self.output_path) self.job.generate_rolls() self.dirname = os.path.basename(self.job.output_path)
def setUp(self): super(ViewsEmptyTestCase, self).setUp() user = UserFactory(password='******') user.is_superuser = True user.save() self.assertTrue(self.client.login(username=user.username, password='******'))