Пример #1
0
def test_dbmodel(zeo_server):
    db = zerodb.testing.db(None, zeo_server)
    assert db[ExampleModel]._model == ExampleModel
    assert db[ExampleModel]._db == db
    assert db[ExampleModel]._catalog_name == "catalog__examplemodel"
    assert db[ExampleModel]._intid_name == "store__examplemodel"
    db.disconnect()
Пример #2
0
def test_db(zeo_server):
    db = zerodb.testing.db(None, zeo_server)
    assert len(db._models) == 0
    assert isinstance(db[ExampleModel], zerodb.db.DbModel)
    assert len(db._models) == 1
    assert ExampleModel in db._models
    db.disconnect()
Пример #3
0
def test_dbmodel(zeo_server):
    db = zerodb.DB(zeo_server, username="******", password=TEST_PASSPHRASE, debug=True)
    assert db[ExampleModel]._model == ExampleModel
    assert db[ExampleModel]._db == db
    assert db[ExampleModel]._catalog_name == "catalog__examplemodel"
    assert db[ExampleModel]._intid_name == "store__examplemodel"
    db.disconnect()
Пример #4
0
def test_db(zeo_server):
    db = zerodb.DB(zeo_server, username="******", password=TEST_PASSPHRASE, debug=True)
    assert len(db._models) == 0
    assert isinstance(db[ExampleModel], zerodb.db.DbModel)
    assert len(db._models) == 1
    assert ExampleModel in db._models
    db.disconnect()
Пример #5
0
def test_dbmodel(zeo_server):
    db = zerodb.DB(zeo_server, username="******", password=TEST_PASSPHRASE, debug=True)
    assert db[TestMe]._model == TestMe
    assert db[TestMe]._db == db
    assert db[TestMe]._catalog_name == "catalog__testme"
    assert db[TestMe]._intid_name == "store__testme"
    db.disconnect()
Пример #6
0
def test_dbmodel(zeo_server):
    db = zerodb.DB(zeo_server,
                   username="******",
                   password=TEST_PASSPHRASE,
                   debug=True)
    assert db[ExampleModel]._model == ExampleModel
    assert db[ExampleModel]._db == db
    assert db[ExampleModel]._catalog_name == "catalog__examplemodel"
    assert db[ExampleModel]._intid_name == "store__examplemodel"
    db.disconnect()
Пример #7
0
def test_db(zeo_server):
    db = zerodb.DB(zeo_server,
                   username="******",
                   password=TEST_PASSPHRASE,
                   debug=True)
    assert len(db._models) == 0
    assert isinstance(db[ExampleModel], zerodb.db.DbModel)
    assert len(db._models) == 1
    assert ExampleModel in db._models
    db.disconnect()
Пример #8
0
def test_dbmodel(zeo_server):
    db = zerodb.DB(zeo_server,
                   username="******",
                   password=TEST_PASSPHRASE,
                   debug=True)
    assert db[TestMe]._model == TestMe
    assert db[TestMe]._db == db
    assert db[TestMe]._catalog_name == "catalog__testme"
    assert db[TestMe]._intid_name == "store__testme"
    db.disconnect()