Ejemplo n.º 1
0
class TestItAll(object):
    def setup(self):
        self.app = app.test_client()
        key = 'tSZWuSYlRmdV7JpMI4E8oMQ'
        self.db = OurDatabase(key)

    def test_get_tasks(self):
        out = self.db.all_tasks()
        assert len(out)
        print out[0].content
        assert out[0].content['spreadsheetid'] == 'tDMCil7PxwW7DQeBHlckl9A'

    def test_get_task(self):
        out = self.db.get_task('1')
        assert out[0].content['spreadsheetid'] == 'tDMCil7PxwW7DQeBHlckl9A'
Ejemplo n.º 2
0
class TestItAll(object):
    def setup(self):
        self.app = app.test_client()
        key = 'tSZWuSYlRmdV7JpMI4E8oMQ'
        self.db = OurDatabase(key)

    def test_get_tasks(self):
        out = self.db.all_tasks()
        assert len(out)
        print out[0].content
        assert out[0].content['spreadsheetid'] == 'tDMCil7PxwW7DQeBHlckl9A'

    def test_get_task(self):
        out = self.db.get_task('1')
        assert out[0].content['spreadsheetid'] == 'tDMCil7PxwW7DQeBHlckl9A'
Ejemplo n.º 3
0
 def setup(self):
     self.app = app.test_client()
     key = 'tSZWuSYlRmdV7JpMI4E8oMQ'
     self.db = OurDatabase(key)
Ejemplo n.º 4
0
 def setup(self):
     self.app = app.test_client()
     key = 'tSZWuSYlRmdV7JpMI4E8oMQ'
     self.db = OurDatabase(key)