Esempio n. 1
0
    def test_get_auth_token(self):
        """
        Test retrieving auth token from Google
        """

        raise SkipTest("test requires a valid authentication on picasa")
        user = ''
        passwd = ''
        token = picasa.get_auth_token(user, passwd)
        self.assert_(token)
Esempio n. 2
0
    def test_get_auth_token(self):
        """
        Test retrieving auth token from Google
        """

        raise SkipTest("test requires a valid authentication on picasa")
        user = ''
        passwd = ''
        token = picasa.get_auth_token(user, passwd)
        self.assert_(token)
Esempio n. 3
0
 def test_get_auth_token(self):
     """
     Test retrieving auth token from Google
     """
     # TODO: will probably have to skip this test since requires a
     # password
     raise SkipTest
     user = ''
     passwd = ''
     token = picasa.get_auth_token(user, passwd)
     self.assert_(token)
Esempio n. 4
0
 def itest_infopage(self):
     from bauble.plugins.plants import Family, Genus, Species
     email = ''
     passwd = ''
     album='Plants'
     if email:
         token = picasa.get_auth_token(email, passwd)
         picasa.update_meta(email=email, album=album, token=token)
     f = Family(family=u'Orchidaceae')
     g = Genus(family=f, genus=u'Maxillaria')
     sp = Species(genus=g, sp=u'elatior')
     self.session.add_all([f, g, sp])
     self.session.commit()
     self.dialog = gtk.Dialog()
     self.dialog.set_size_request(250, 700)
     page = picasa.PicasaInfoPage()
     page.update(sp)
     self.dialog.vbox.pack_start(page)
     self.dialog.show_all()
     self.dialog.run()
Esempio n. 5
0
 def test_infopage(self):
     raise SkipTest('Not Implemented')
     from bauble.plugins.plants import Family, Genus, Species
     email = ''
     passwd = ''
     album = 'Plants'
     if email:
         token = picasa.get_auth_token(email, passwd)
         picasa.update_meta(email=email, album=album, token=token)
     f = Family(family=u'Orchidaceae')
     g = Genus(family=f, genus=u'Maxillaria')
     sp = Species(genus=g, sp=u'elatior')
     self.session.add_all([f, g, sp])
     self.session.commit()
     self.dialog = gtk.Dialog()
     self.dialog.set_size_request(250, 700)
     page = picasa.PicasaInfoPage()
     page.update(sp)
     self.dialog.vbox.pack_start(page)
     self.dialog.show_all()
     self.dialog.run()