Skip to content

Commit

Permalink
revert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aspicer committed Jul 3, 2024
1 parent e704d2e commit 7d6646e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion posthog/hogql/test/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def test_replace_filters_empty(self):
HogQLFilters(),
self.team,
)
self.assertEqual(self._print_ast(select), f"SELECT event FROM events WHERE 1 LIMIT {MAX_SELECT_RETURNED_ROWS}")
self.assertEqual(
self._print_ast(select), f"SELECT event FROM events WHERE true LIMIT {MAX_SELECT_RETURNED_ROWS}"
)

def test_replace_filters_date_range(self):
select = replace_filters(
Expand Down
2 changes: 1 addition & 1 deletion posthog/hogql/test/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ def test_hogql_query_filters_empty_true(self):
team=self.team,
pretty=False,
)
self.assertEqual(response.hogql, "SELECT event FROM events WHERE 1 LIMIT 100")
self.assertEqual(response.hogql, "SELECT event FROM events WHERE true LIMIT 100")

def test_hogql_query_filters_double_error(self):
query = "SELECT event from events where {filters}"
Expand Down

0 comments on commit 7d6646e

Please sign in to comment.