summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-20 01:47:33 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-20 01:47:33 +0200
commit77807b4a6bbec59ea98c9f53557ac96239c6300e (patch)
tree651ed979fa0d830b0e4f96c79ca54cd8e4cb53a2
parentcdc3ae9a91cbe7db1728bb0e83b1c3beee940310 (diff)
downloadfactory-boy-77807b4a6bbec59ea98c9f53557ac96239c6300e.tar
factory-boy-77807b4a6bbec59ea98c9f53557ac96239c6300e.tar.gz
Fix tests for sqlalchemy.
Also add them to travis.
-rw-r--r--.travis.yml1
-rw-r--r--tests/test_alchemy.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 3c784ce..ee43db3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,6 +13,7 @@ script:
install:
- if [[ $TRAVIS_PYTHON_VERSION = 2.6 ]]; then pip install unittest2 --use-mirrors; fi
- pip install Django --use-mirrors
+ - pip install sqlalchemy --use-mirrors
notifications:
email: false
diff --git a/tests/test_alchemy.py b/tests/test_alchemy.py
index 39e94c8..cfbc835 100644
--- a/tests/test_alchemy.py
+++ b/tests/test_alchemy.py
@@ -31,7 +31,7 @@ except ImportError:
sqlalchemy = None
if sqlalchemy:
- from factory import SQLAlchemyModelFactory
+ from factory.alchemy import SQLAlchemyModelFactory
from .alchemyapp import models
else: