Skip to content

Commit

Permalink
Fix API model tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Jul 20, 2015
1 parent 2ea261d commit 70af04e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions h/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import transaction

from h import db
from h.api import db as api_db


class DummyFeature(object):
Expand Down Expand Up @@ -91,6 +92,8 @@ def db_session(request, settings):
engine = db.make_engine(settings)
db.bind_engine(engine, should_create=True, should_drop=True)

api_db.use_session(db.Session)

def destroy():
transaction.commit()
db.Session.remove()
Expand Down

0 comments on commit 70af04e

Please sign in to comment.