def setUp(self): user, domain = create_user_and_domain(username='******',password='******', domain_name='mockdomain') self.authuser = user self.authuser.password = '******' self.client.login(username='******',password='******') user, domain = create_user_and_domain(username='******',password='******', domain_name='otherdomain') self.unauthuser = user self.unauthuser.password = '******'
def setUp(self): # we cannot load this using django built-in fixtures # because django filters are model dependent # (and we have a whack of dynamically generated non-model db tables) clear_data() user, domain = create_user_and_domain() create_xsd_and_populate("data/brac_chw.xsd", "data/brac_chw_1.xml", domain) self.client.login(username='******',password='******')
def setup_build_objects(jar_file_name="dummy.jar", jad_file_name="dummy.jad", build_number=1, status="release"): '''A little utility to setup a domain, user, project and build for future tests. Lets you specify a jar you want to use, and defaults to dummy versions''' user, domain = create_user_and_domain() project = Project.objects.create(domain=domain, name="Project", description="Project Description") build = create_build(user, domain, project, status, jar_file_name, jad_file_name, build_number) return (user, domain, project, build)
def setUp(self): self.domain_name = 'mockdomain' self.username = '******' self.password = '******' user, domain = create_user_and_domain(username = self.username, password = self.password, domain_name=self.domain_name) # we are explicitly testing non-traditionally logged-in authentication # self.client.login(username=self.username,password=self.password) org = Organization(name='mockorg', domain=domain) org.save()
def setUp(self): create_user_and_domain() self.client.login(username='******',password='******')
def setUp(self): user, domain = create_user_and_domain() self.client.login(username='******',password='******') org = Organization(name='mockorg', domain=domain) org.save()
def setUp(self): create_user_and_domain() self.client.login(username="******", password="******")
def setUp(self): user, domain = create_user_and_domain() self.client.login(username="******", password="******") org = Organization(name="mockorg", domain=domain) org.save()