Example #1
0
 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 = '******'
Example #2
0
 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='******')
Example #3
0
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)
Example #4
0
 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()
Example #5
0
 def setUp(self):
     create_user_and_domain()
     self.client.login(username='******',password='******')
Example #6
0
 def setUp(self):
     user, domain = create_user_and_domain()
     self.client.login(username='******',password='******')
     org = Organization(name='mockorg', domain=domain)
     org.save()            
Example #7
0
File: views.py Project: ITIDO/gfatm
 def setUp(self):
     create_user_and_domain()
     self.client.login(username="******", password="******")
Example #8
0
 def setUp(self):
     user, domain = create_user_and_domain()
     self.client.login(username="******", password="******")
     org = Organization(name="mockorg", domain=domain)
     org.save()