Skip to content

Commit

Permalink
Echo sql to console for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Digant C Kasundra committed May 14, 2015
1 parent 44a0340 commit 26e5ca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ install:
- pip install -r requirements-dev.txt
- pip install .

script: py.test -vvv tests/
script: py.test -vvv -s tests/

after_success: curl -X POST http://readthedocs.org/build/dbx_hermes
2 changes: 1 addition & 1 deletion hermes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _set_sqlite_pragma(dbapi_connection, connection_record):


def get_db_engine(url, echo=False):
engine = create_engine(url, pool_recycle=300, echo=False)
engine = create_engine(url, pool_recycle=300, echo=echo)
Model.metadata.create_all(engine)

if engine.driver == "pysqlite":
Expand Down

0 comments on commit 26e5ca0

Please sign in to comment.