@@ -67,10 +67,10 @@ def test_ddb_xml_reader_all_str(temp_xml_file):
6767 uri , header_model , header_data , class_data_model , class_data = temp_xml_file
6868 ddb_conn = default_connection
6969 header_reader = DuckDBXMLStreamReader (
70- ddb_connection = ddb_conn , root_tag = "root" , record_tag = "Header"
70+ connection = ddb_conn , root_tag = "root" , record_tag = "Header"
7171 )
7272 class_reader = DuckDBXMLStreamReader (
73- ddb_connection = ddb_conn , root_tag = "root" , record_tag = "ClassData"
73+ connection = ddb_conn , root_tag = "root" , record_tag = "ClassData"
7474 )
7575 header_rel : DuckDBPyRelation = header_reader .read_to_relation (
7676 uri .as_uri (), "header" , header_model
@@ -90,10 +90,10 @@ def test_ddb_xml_reader_write_parquet(temp_xml_file):
9090 uri , header_model , header_data , class_data_model , class_data = temp_xml_file
9191 ddb_conn = default_connection
9292 header_reader = DuckDBXMLStreamReader (
93- ddb_connection = ddb_conn , root_tag = "root" , record_tag = "Header"
93+ connection = ddb_conn , root_tag = "root" , record_tag = "Header"
9494 )
9595 class_reader = DuckDBXMLStreamReader (
96- ddb_connection = ddb_conn , root_tag = "root" , record_tag = "ClassData"
96+ connection = ddb_conn , root_tag = "root" , record_tag = "ClassData"
9797 )
9898 header_rel : DuckDBPyRelation = header_reader .read_to_relation (
9999 uri .as_uri (), "header" , header_model
@@ -105,10 +105,10 @@ def test_ddb_xml_reader_write_parquet(temp_xml_file):
105105 target_class_loc : Path = uri .parent .joinpath ("class_parquet.parquet" ).as_posix ()
106106 header_reader .write_parquet (entity = header_rel , target_location = target_header_loc )
107107 class_reader .write_parquet (entity = class_rel , target_location = target_class_loc )
108- header_parquet_rel : DuckDBPyRelation = header_reader .ddb_connection .read_parquet (
108+ header_parquet_rel : DuckDBPyRelation = header_reader ._connection .read_parquet (
109109 target_header_loc
110110 )
111- class_parquet_rel : DuckDBPyRelation = class_reader .ddb_connection .read_parquet (target_class_loc )
111+ class_parquet_rel : DuckDBPyRelation = class_reader ._connection .read_parquet (target_class_loc )
112112 assert header_parquet_rel .df ().to_dict (orient = "records" ) == header_rel .df ().to_dict (
113113 orient = "records"
114114 )
0 commit comments