Exemplo n.º 1
0
    def setUp(self):
        self.test_user_id = '*****@*****.**'
        self.test_user_password = '******'
        self.user = auth.create_user(self.test_user_id, self.test_user_password, is_active=True)

        self.browser = auth.browser_login(Browser('django'), self.test_user_id, self.test_user_password)
        self.browser.visit('/dashboard')
Exemplo n.º 2
0
    def setUp(self):
        self.test_user_id = '*****@*****.**'
        self.test_user_password = '******'
        self.user = auth.create_user(self.test_user_id,
                                     self.test_user_password,
                                     is_active=True)

        self.browser = auth.browser_login(Browser('django'), self.test_user_id,
                                          self.test_user_password)
        self.browser.visit('/dashboard')
Exemplo n.º 3
0
    def setUp(self):
        self.test_user_id = '*****@*****.**'
        self.test_user_password = '******'
        self.user = auth.create_user(self.test_user_id, self.test_user_password, is_active=True)
        self.genomes = []

        self.browser = auth.browser_login(Browser('django'), self.test_user_id, self.test_user_password)

        # SNPs for whitelist
        phenotype, _ = GwasCatalogPhenotype.objects.get_or_create(name='test phenotype 1')
        GwasCatalogSnp(date_downloaded=today_with_tz,
                       pubmed_id='12345678',
                       phenotype=phenotype,
                       snp_id_current=6054257,
                       population=['EastAsian']).save()