Beispiel #1
0
def test_app():
    """
    return new TestApp that refers to a new FakeDb, which is
    returned as the .fakedb member of the returned object.
    """
    fakedb = FakeDb()
    poemtube.db.which_db.db = fakedb
    ret = TestApp(app.wsgifunc())
    ret.fakedb = fakedb
    return ret
Beispiel #2
0
def test_app():
    """
    return new TestApp that refers to a new FakeDb, which is
    returned as the .fakedb member of the returned object.
    """
    fakedb = FakeDb()
    poemtube.db.which_db.db = fakedb
    ret = TestApp( app.wsgifunc() )
    ret.fakedb = fakedb
    return ret