@@ -41,9 +41,9 @@ def sample_table(self):
4141 return Table (
4242 name = "users" ,
4343 columns = [
44- Column (name = "id" , type = ColumnType .int , is_primary_key = True ),
45- Column (name = "name" , type = ColumnType .string ),
46- Column (name = "age" , type = ColumnType .int ),
44+ Column (name = "id" , schema = ColumnType .int , is_primary_key = True ),
45+ Column (name = "name" , schema = ColumnType .string ),
46+ Column (name = "age" , schema = ColumnType .int ),
4747 ],
4848 data = [
4949 {"id" : 1 , "name" : "Alice" , "age" : 30 },
@@ -118,7 +118,7 @@ def test_rename_table(self, tables, sample_table, temp_dir):
118118 def test_add_column (self , tables , sample_table ):
119119 tables .add_table (sample_table )
120120 new_column = Column (
121- name = "email" , type = ColumnType .string , default = "test@example.com"
121+ name = "email" , schema = ColumnType .string , default = "test@example.com"
122122 )
123123 tables .add_column ("users" , new_column )
124124
@@ -154,7 +154,7 @@ def test_change_column_type(self, tables, sample_table):
154154
155155 table = tables .get_table ("users" )
156156 age_col = table .get_column ("age" )
157- assert age_col .type == ColumnType .string
157+ assert age_col .schema == ColumnType .string
158158
159159 def test_insert (self , tables , sample_table ):
160160 tables .add_table (sample_table )
@@ -194,8 +194,8 @@ def test_new_uuid_implementation():
194194 table = Table (
195195 name = "users" ,
196196 columns = [
197- Column (name = "id" , type = ColumnType .int , is_primary_key = True ),
198- Column (name = "name" , type = ColumnType .string ),
197+ Column (name = "id" , schema = ColumnType .int , is_primary_key = True ),
198+ Column (name = "name" , schema = ColumnType .string ),
199199 ],
200200 data = [
201201 {"id" : 1 , "name" : "Alice" },
@@ -249,8 +249,8 @@ def test_uuid_file_names_and_rename():
249249 table = Table (
250250 name = "users" ,
251251 columns = [
252- Column (name = "id" , type = ColumnType .int , is_primary_key = True ),
253- Column (name = "name" , type = ColumnType .string ),
252+ Column (name = "id" , schema = ColumnType .int , is_primary_key = True ),
253+ Column (name = "name" , schema = ColumnType .string ),
254254 ],
255255 data = [
256256 {"id" : 1 , "name" : "Alice" },
0 commit comments