def METHOD_NAME(context, **kwargs):
    dbname = context.config.userdata['TEST_DB']
    _drop_db(context, dbname, recreate_immediately=True)
    with _connect_db(context, dbname) as conn:
        with conn.cursor() as cur:
            cur.execute('CREATE EXTENSION postgis')
            cur.execute('CREATE EXTENSION hstore')
        yield conn
    if not context.config.userdata['KEEP_TEST_DB']:
        _drop_db(context, dbname)