Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix for test, all tests succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke committed Dec 7, 2012
1 parent a8a7ac5 commit 693e7df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/mvvm/viewmodel/test_wrapper.py
Expand Up @@ -2,11 +2,11 @@
import unittest

import mock
from sqlalchemy import event
from traits.has_traits import HasTraits
from traits.traits import CTrait

from common.models import Skater, Country
from app import Base
from mvvm.viewmodel import wrapper
from mvvm.viewmodel.wrapper import wrap, wrap_cls
from tests import engine, Session
Expand Down Expand Up @@ -55,6 +55,7 @@ def test_sqlalchemy(self):
connection = engine.connect()
trans = connection.begin()
session = Session(bind=connection)
event.listen(session, 'after_flush', wrapper.session_flush)

skater = Skater(
first_name='Bouke',
Expand Down

0 comments on commit 693e7df

Please sign in to comment.