@@ -69,7 +69,7 @@ def test_csv_reader(seed_households, state):
6969 """
7070
7171 settings = yaml .load (settings_yaml , Loader = yaml .SafeLoader )
72- settings = configuration .Settings .parse_obj (settings )
72+ settings = configuration .Settings .model_validate (settings )
7373 state .settings = settings
7474
7575 hh_file = state .filesystem .get_data_dir ()[0 ].joinpath ("households.csv" )
@@ -94,7 +94,7 @@ def test_hdf_reader1(seed_households, state):
9494 """
9595
9696 settings = yaml .load (settings_yaml , Loader = yaml .SafeLoader )
97- settings = configuration .Settings .parse_obj (settings )
97+ settings = configuration .Settings .model_validate (settings )
9898 state .settings = settings
9999
100100 hh_file = state .filesystem .get_data_dir ()[0 ].joinpath ("households.h5" )
@@ -120,7 +120,7 @@ def test_hdf_reader2(seed_households, state):
120120 """
121121
122122 settings = yaml .load (settings_yaml , Loader = yaml .SafeLoader )
123- settings = configuration .Settings .parse_obj (settings )
123+ settings = configuration .Settings .model_validate (settings )
124124 state .settings = settings
125125
126126 hh_file = state .filesystem .get_data_dir ()[0 ].joinpath ("households.h5" )
@@ -145,7 +145,7 @@ def test_hdf_reader3(seed_households, state):
145145 """
146146
147147 settings = yaml .load (settings_yaml , Loader = yaml .SafeLoader )
148- settings = configuration .Settings .parse_obj (settings )
148+ settings = configuration .Settings .model_validate (settings )
149149 state .settings = settings
150150
151151 hh_file = state .filesystem .get_data_dir ()[0 ].joinpath ("input_data.h5" )
@@ -169,7 +169,7 @@ def test_missing_filename(seed_households, state):
169169 """
170170
171171 settings = yaml .load (settings_yaml , Loader = yaml .SafeLoader )
172- settings = configuration .Settings .parse_obj (settings )
172+ settings = configuration .Settings .model_validate (settings )
173173 state .settings = settings
174174
175175 with pytest .raises (AssertionError ) as excinfo :
@@ -191,7 +191,7 @@ def test_create_input_store(seed_households, state):
191191 """
192192
193193 settings = yaml .load (settings_yaml , Loader = yaml .SafeLoader )
194- settings = configuration .Settings .parse_obj (settings )
194+ settings = configuration .Settings .model_validate (settings )
195195 state .settings = settings
196196
197197 hh_file = state .filesystem .get_data_dir ()[0 ].joinpath ("households.csv" )
0 commit comments