Skip to content

Commit

Permalink
Repaired tests to correctly run under Python 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimian committed Apr 4, 2014
1 parent 87192f1 commit d4451fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/test_migrate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import shutil
from exceptions import OSError
import unittest

class TestMigrate(unittest.TestCase):
Expand Down Expand Up @@ -30,7 +29,7 @@ def tearDown(self):
pass

def test_migrate_upgrade(self):
from app import db, User
from .app import db, User
db.session.add(User(name = 'test'))
db.session.commit()

Expand Down
3 changes: 1 addition & 2 deletions tests/test_migrate_custom_directory.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import shutil
from exceptions import OSError
import unittest

class TestMigrate(unittest.TestCase):
Expand Down Expand Up @@ -30,7 +29,7 @@ def tearDown(self):
pass

def test_migrate_upgrade(self):
from app2 import db, User
from .app2 import db, User
db.session.add(User(name = 'test'))
db.session.commit()

Expand Down

0 comments on commit d4451fd

Please sign in to comment.