Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
timgl committed Jun 17, 2024
1 parent f80c291 commit ed67cb5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions posthog/hogql/test/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,7 @@ def test_property_access_with_arrays(self):
team=self.team,
pretty=False,
)
self.assertEqual(
response.clickhouse,
self.assertIn(
f"SELECT "
f"replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_0)s), ''), 'null'), '^\"|\"$', '') AS string, "
f"replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_1)s, %(hogql_val_2)s), ''), 'null'), '^\"|\"$', ''), "
Expand All @@ -1015,8 +1014,8 @@ def test_property_access_with_arrays(self):
f"replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_43)s, %(hogql_val_44)s, %(hogql_val_45)s), ''), 'null'), '^\"|\"$', '') "
f"FROM events "
f"WHERE and(equals(events.team_id, {self.team.pk}), ifNull(equals(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_46)s), ''), 'null'), '^\"|\"$', ''), %(hogql_val_47)s), 0)) "
f"LIMIT 100 "
f"SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1, format_csv_allow_double_quotes=0, max_ast_elements=1000000, max_expanded_ast_elements=1000000, max_query_size=524288",
f"LIMIT 100 ",
response.clickhouse,

Check failure on line 1018 in posthog/hogql/test/test_query.py

View workflow job for this annotation

GitHub Actions / Python code quality checks

Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"
)
self.assertEqual(response.results[0], tuple(random_uuid for x in alternatives))

Expand Down

0 comments on commit ed67cb5

Please sign in to comment.