Skip to content

Commit 037bdb0

Browse files
committed
Fix spec
1 parent b3223cd commit 037bdb0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test_mysql_ch_replicator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,14 +1607,14 @@ def test_enum_conversion():
16071607
results = ch.select(TEST_TABLE_NAME)
16081608

16091609
# Verify all values are properly converted
1610-
assert results[0][1] == 'purchase' # First row, status_mixed_case is lowercase 'purchase'
1611-
assert results[1][1] == 'sell' # Second row, status_mixed_case is lowercase 'sell'
1612-
assert results[2][1] == 'transfer' # Third row, status_mixed_case is lowercase 'transfer'
1610+
assert results[0]['status_mixed_case'] == 'purchase'
1611+
assert results[1]['status_mixed_case'] == 'sell'
1612+
assert results[2]['status_mixed_case'] == 'transfer'
16131613

16141614
# Status_empty should handle NULL values correctly
1615-
assert results[0][2] == 'yes' # First row has explicit 'Yes' value
1616-
assert results[1][2] is None # Second row is NULL
1617-
assert results[2][2] is None # Third row is NULL
1615+
assert results[0]['status_empty'] == 'yes'
1616+
assert results[1]['status_empty'] is None
1617+
assert results[2]['status_empty'] is None
16181618

16191619
run_all_runner.stop()
16201620
assert_wait(lambda: 'stopping db_replicator' in read_logs(TEST_DB_NAME))

0 commit comments

Comments
 (0)