Skip to content

Commit

Permalink
remove db engine convert_unicode argument per SQLALchemy 1.3 upgrade …
Browse files Browse the repository at this point in the history
…guide
  • Loading branch information
jantman committed Jan 25, 2020
1 parent 5345338 commit 2db9cd1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Unreleased Changes
* Upgrade Jinja2 from 2.10 to 2.10.3 for `CVE-2019-10906 <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-10906>`_.
* Upgrade to latest versions for: alembic, Babel, beautifulsoup4, cffi, httplib2, hvac, idna, keyring, lxml, requests, SQLAlchemy-Utc.

* Remove ``convert_unicode`` argument from SQLAlchemy DB engine arguments per SQLAlchemy 1.3 upgrade guide / `SQLAlchemy #4393 <https://github.com/sqlalchemy/sqlalchemy/issues/4393>`_.

1.0.0 (2018-07-07)
------------------

Expand Down
1 change: 0 additions & 1 deletion biweeklybudget/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
warnings.simplefilter('error', category=Warning)

engine_args = {
'convert_unicode': True,
'echo': echo,
'pool_recycle': 3600
}
Expand Down
2 changes: 1 addition & 1 deletion biweeklybudget/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_db_engine():
os.environ['DB_CONNSTRING'] = connstr
biweeklybudget.settings.DB_CONNSTRING = connstr
_DB_ENGINE = create_engine(
connstr, convert_unicode=True, echo=False,
connstr, echo=False,
connect_args={
'sql_mode': 'STRICT_ALL_TABLES,NO_ZERO_DATE,'
'NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,'
Expand Down

0 comments on commit 2db9cd1

Please sign in to comment.