Skip to content

Commit

Permalink
Test against latest 24.1.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xzkostyan committed Feb 19, 2024
1 parent 24e8b35 commit e4273f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- "pypy-3.6"
- "pypy-3.7"
clickhouse-version:
- 24.1.5.6
- 23.9.3.12
- 23.2.6.34
- 22.9.5.25
Expand Down
6 changes: 3 additions & 3 deletions tests/test_query_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_last_query_after_execute_with_progress(self):
self.assertEqual(last_query.elapsed, 0)

def test_last_query_progress_total_rows(self):
self.client.execute('SELECT max(number) FROM numbers(10)')
self.client.execute('SELECT number FROM numbers(10) LIMIT 10')

last_query = self.client.last_query
self.assertIsNotNone(last_query)
Expand Down Expand Up @@ -144,8 +144,8 @@ def test_progress_info_increment(self):
last_query = self.client.last_query
self.assertIsNotNone(last_query)
self.assertIsNotNone(last_query.progress)
self.assertGreater(last_query.progress.rows, 100000000)
self.assertGreater(last_query.progress.bytes, 800000000)
self.assertGreaterEqual(last_query.progress.rows, 100000000)
self.assertGreaterEqual(last_query.progress.bytes, 800000000)

total_rows = 100000000 if self.server_version > (19, 4) else 0
self.assertEqual(last_query.progress.total_rows, total_rows)
Expand Down

0 comments on commit e4273f2

Please sign in to comment.