示例#1
0
 def setUp(self):
     gludb.config.default_database(None)  # no default database
     gludb.config.class_database(
         SimpleStorage,
         gludb.config.Database('postgresql', conn_string=PG_CONN_STR))
     delete_test_tables()
     SimpleStorage.ensure_table()
 def setUp(self):
     gludb.config.default_database(None)  # no default database
     gludb.config.class_database(SimpleStorage, gludb.config.Database(
         'mongodb',
         mongo_url='mongodb://localhost:27017/gludb_testing'
     ))
     delete_test_colls()
     SimpleStorage.ensure_table()
示例#3
0
 def setUp(self):
     gludb.config.default_database(None)  # no default database
     gludb.config.class_database(SimpleStorage, gludb.config.Database(
         'postgresql',
         conn_string=PG_CONN_STR
     ))
     delete_test_tables()
     SimpleStorage.ensure_table()
示例#4
0
 def setUp(self):
     gludb.config.default_database(None)  # no default database
     gludb.config.class_database(
         SimpleStorage,
         gludb.config.Database(
             'mongodb',
             mongo_url='mongodb://localhost:27017/gludb_testing'))
     delete_test_colls()
     SimpleStorage.ensure_table()
    def test_repeated_creates(self):
        SimpleStorage.ensure_table()
        SimpleStorage.ensure_table()
        SimpleStorage.ensure_table()

        IndexedData.ensure_table()
        IndexedData.ensure_table()
        IndexedData.ensure_table()
示例#6
0
    def test_repeated_creates(self):
        SimpleStorage.ensure_table()
        SimpleStorage.ensure_table()
        SimpleStorage.ensure_table()

        IndexedData.ensure_table()
        IndexedData.ensure_table()
        IndexedData.ensure_table()
示例#7
0
 def setUp(self):
     gludb.config.default_database(None)  # no default database
     gludb.config.class_database(SimpleStorage, gludb.config.Database(
         'dynamodb'
     ))
     SimpleStorage.ensure_table()