@@ -73,26 +73,28 @@ def check_dbsync_state(
7373 f"Invalid column condition format: { condition } "
7474 )
7575 column_condition = condition .value .split (":" , 1 )[1 ]
76- dbsync_utils .check_column_condition (table , column , column_condition )
76+ dbsync_utils .check_column_condition (
77+ table = table , column = column , condition = column_condition
78+ )
7779 else : # Table-level check
7880 assert isinstance (condition , TableCondition ), (
7981 f"Invalid table condition format: { condition } "
8082 )
8183 match condition :
8284 case TableCondition .EMPTY :
83- assert dbsync_utils .table_empty (key ), (
85+ assert dbsync_utils .table_empty (table = key ), (
8486 f"Expected { key } to be empty, but it is not."
8587 )
8688 case TableCondition .NOT_EMPTY :
87- assert not dbsync_utils .table_empty (key ), (
89+ assert not dbsync_utils .table_empty (table = key ), (
8890 f"Expected { key } to have data, but it is empty."
8991 )
9092 case TableCondition .EXISTS :
91- assert dbsync_utils .table_exists (key ), (
93+ assert dbsync_utils .table_exists (table = key ), (
9294 f"Expected { key } to exist, but it does not."
9395 )
9496 case TableCondition .NOT_EXISTS :
95- assert not dbsync_utils .table_exists (key ), (
97+ assert not dbsync_utils .table_exists (table = key ), (
9698 f"Expected { key } to NOT exist, but it does."
9799 )
98100 case _:
0 commit comments