@@ -36,8 +36,8 @@ def action_list_function(*args, **kwargs): # pylint: disable=unused-argument
3636 return [AbortAndShowErrorAction (message = "Testerror" ), AbortAndShowErrorAction (message = "Testerror" )]
3737
3838
39- dummy_document = Document (
40- ** {
39+ dummy_document = Document . model_validate (
40+ {
4141 "object_type" : "document" ,
4242 "z_nummer" : "D000017" ,
4343 "z_index" : "a" ,
@@ -87,8 +87,8 @@ def action_list_function(*args, **kwargs): # pylint: disable=unused-argument
8787 }
8888)
8989
90- dummy_part = Part (
91- ** {
90+ dummy_part = Part . model_validate (
91+ {
9292 "object_type" : "part" ,
9393 "teilenummer" : "000000" ,
9494 "t_index" : "a" ,
@@ -141,21 +141,25 @@ def action_list_function(*args, **kwargs): # pylint: disable=unused-argument
141141)
142142
143143dummy_request = Request (
144- metadata = MetaData (
145- request_id = "123" ,
146- app_lang = "de" ,
147- app_user = "caddok" ,
148- request_datetime = datetime (2000 , 1 , 1 ),
149- transaction_id = "123asd" ,
150- instance_url = "https://instance.contact-cloud.com" ,
151- service_url = None ,
144+ metadata = MetaData .model_validate (
145+ {
146+ "request_id" : "123" ,
147+ "app_lang" : "de" ,
148+ "app_user" : "caddok" ,
149+ "request_datetime" : datetime (2000 , 1 , 1 ),
150+ "transaction_id" : "123asd" ,
151+ "instance_url" : "https://instance.contact-cloud.com" ,
152+ "service_url" : None ,
153+ "service_token" : "123" ,
154+ "db_service_url" : None ,
155+ }
152156 ),
153157 event = DummyEvent (event_id = "42" , data = DummyEventData (documents = [dummy_document ], parts = [dummy_part ])),
154158)
155159
156160
157- dummy_ec = EngineeringChange (
158- ** {
161+ dummy_ec = EngineeringChange . model_validate (
162+ {
159163 "object_type" : "engineering_change" ,
160164 "cdb_ec_id" : "EC00000005" ,
161165 "cdb_project_id" : "" ,
0 commit comments