Skip to content

Commit

Permalink
fix enriched date tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kvesteri committed May 3, 2020
1 parent 22f3c88 commit 0b42e06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/types/test_enriched_date_pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def test_utc(self, session, User):
def test_literal_param(self, session, User):
clause = User.birthday > '2015-01-01'
compiled = str(clause.compile(compile_kwargs={"literal_binds": True}))
assert compiled == 'users.birthday > 2015-01-01'
assert compiled == "users.birthday > '2015-01-01'"
2 changes: 1 addition & 1 deletion tests/types/test_enriched_datetime_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_other_tz(self, session, Article):
def test_literal_param(self, session, Article):
clause = Article.created_at > '2015-01-01'
compiled = str(clause.compile(compile_kwargs={"literal_binds": True}))
assert compiled == 'article.created_at > 2015-01-01'
assert compiled == "article.created_at > '2015-01-01'"

@pytest.mark.usefixtures('postgresql_dsn')
def test_timezone(self, session, Article):
Expand Down
2 changes: 1 addition & 1 deletion tests/types/test_enriched_datetime_pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ def test_other_tz(self, session, User):
def test_literal_param(self, session, User):
clause = User.created_at > '2015-01-01'
compiled = str(clause.compile(compile_kwargs={"literal_binds": True}))
assert compiled == 'users.created_at > 2015-01-01'
assert compiled == "users.created_at > '2015-01-01'"

0 comments on commit 0b42e06

Please sign in to comment.