diff --git a/orator/connectors/mysql_connector.py b/orator/connectors/mysql_connector.py index 858493d7..84906ad8 100644 --- a/orator/connectors/mysql_connector.py +++ b/orator/connectors/mysql_connector.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import re -from pendulum import Pendulum, Date +from pendulum import DateTime as Pendulum, Date try: import MySQLdb as mysql diff --git a/orator/connectors/sqlite_connector.py b/orator/connectors/sqlite_connector.py index 2b165f55..6bb37544 100644 --- a/orator/connectors/sqlite_connector.py +++ b/orator/connectors/sqlite_connector.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from pendulum import Pendulum, Date +from pendulum import DateTime as Pendulum, Date try: import sqlite3 diff --git a/pyproject.toml b/pyproject.toml index c067e646..6e25c665 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ cleo = "^0.6" inflection = "^0.3" Faker = "^0.8" lazy-object-proxy = "^1.2" -pendulum = "^1.4" +pendulum = "^2.0" pyaml = "^16.12" pyyaml = "^5.1" Pygments = "^2.2" diff --git a/tests/orm/test_model.py b/tests/orm/test_model.py index d81abaab..e7055347 100644 --- a/tests/orm/test_model.py +++ b/tests/orm/test_model.py @@ -4,7 +4,7 @@ import hashlib import time import datetime -from pendulum import Pendulum +from pendulum import DateTime as Pendulum from flexmock import flexmock, flexmock_teardown from .. import OratorTestCase, mock from ..utils import MockModel, MockQueryBuilder, MockConnection, MockProcessor