Skip to content

Commit

Permalink
test: exercise sqlalchemy engine as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
juarezr committed Mar 24, 2021
1 parent 46a98e6 commit 6221cc1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions petl/test/io/test_db_server.py
Expand Up @@ -179,6 +179,14 @@ def test_mysql():
_test_dbo(sqlalchemy_session)
sqlalchemy_session.close()

# exercise sqlalchemy engine
_setup_mysql(dbapi_connection)
sqlalchemy_engine2 = create_engine('mysql+pymysql://%s:%s@%s/%s' %
(user, password, host, database))
sqlalchemy_engine2.execute('SET SQL_MODE=ANSI_QUOTES')
_test_dbo(sqlalchemy_engine2)
sqlalchemy_engine2.dispose()

# other exercises
_test_with_schema(dbapi_connection, database)
utf8_connection = connect(host=host, user=user,
Expand Down

0 comments on commit 6221cc1

Please sign in to comment.