@@ -32,7 +32,9 @@ def updated_resource(resource_client):
3232 updated_model = response ["resourceModel" ]
3333 test_input_equals_output (resource_client , updated_input_model , updated_model )
3434
35- yield create_request , created_model , update_request , updated_model
35+ # flake8: noqa: B950
36+ # pylint: disable=C0301
37+ yield create_request , created_model , update_request , updated_model , updated_input_model
3638 finally :
3739 resource_client .call_and_assert (Action .DELETE , OperationStatus .SUCCESS , model )
3840
@@ -42,20 +44,35 @@ def updated_resource(resource_client):
4244def contract_update_read_success (updated_resource , resource_client ):
4345 # should be able to use the created model
4446 # to read since physical resource id is immutable
45- _create_request , _created_model , _update_request , updated_model = updated_resource
47+ (
48+ _create_request ,
49+ _created_model ,
50+ _update_request ,
51+ updated_model ,
52+ updated_input_model ,
53+ ) = updated_resource
4654 assert resource_client .is_primary_identifier_equal (
4755 resource_client .primary_identifier_paths , _created_model , updated_model
4856 ), "The primaryIdentifier returned must match\
4957 the primaryIdentifier passed into the request"
50- test_read_success (resource_client , updated_model )
58+ read_response = test_read_success (resource_client , updated_model )
59+ test_input_equals_output (
60+ resource_client , updated_input_model , read_response ["resourceModel" ]
61+ )
5162
5263
5364@pytest .mark .update
5465@pytest .mark .list
5566def contract_update_list_success (updated_resource , resource_client ):
5667 # should be able to use the created model
5768 # to read since physical resource id is immutable
58- _create_request , _created_model , _update_request , updated_model = updated_resource
69+ (
70+ _create_request ,
71+ _created_model ,
72+ _update_request ,
73+ updated_model ,
74+ _updated_input_model ,
75+ ) = updated_resource
5976 assert resource_client .is_primary_identifier_equal (
6077 resource_client .primary_identifier_paths , _created_model , updated_model
6178 ), "The primaryIdentifier returned must match\
0 commit comments