@@ -32,7 +32,9 @@ def updated_resource(resource_client):
32
32
updated_model = response ["resourceModel" ]
33
33
test_input_equals_output (resource_client , updated_input_model , updated_model )
34
34
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
36
38
finally :
37
39
resource_client .call_and_assert (Action .DELETE , OperationStatus .SUCCESS , model )
38
40
@@ -42,20 +44,35 @@ def updated_resource(resource_client):
42
44
def contract_update_read_success (updated_resource , resource_client ):
43
45
# should be able to use the created model
44
46
# 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
46
54
assert resource_client .is_primary_identifier_equal (
47
55
resource_client .primary_identifier_paths , _created_model , updated_model
48
56
), "The primaryIdentifier returned must match\
49
57
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
+ )
51
62
52
63
53
64
@pytest .mark .update
54
65
@pytest .mark .list
55
66
def contract_update_list_success (updated_resource , resource_client ):
56
67
# should be able to use the created model
57
68
# 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
59
76
assert resource_client .is_primary_identifier_equal (
60
77
resource_client .primary_identifier_paths , _created_model , updated_model
61
78
), "The primaryIdentifier returned must match\
0 commit comments