Skip to content

Commit df37e64

Browse files
Pytest warning fix for contract test contract_update_without_create (#971)
* Fix for pytest in the future * Update handler_update_invalid.py * Fix build Co-authored-by: Nick Carpenter <[email protected]>
1 parent 1e8e363 commit df37e64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/rpdk/core/contract/suite/resource/handler_update_invalid.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@
1010

1111

1212
@pytest.mark.update
13+
def contract_update_without_create(resource_client):
14+
test_update_without_create(resource_client)
15+
16+
1317
@failed_event(
1418
error_code=HandlerErrorCode.NotFound,
1519
msg="An update handler MUST return FAILED with a NotFound error code\
1620
if the resource did not exist prior to the update request",
1721
)
18-
def contract_update_without_create(resource_client):
22+
def test_update_without_create(resource_client):
1923
create_request = resource_client.generate_create_example()
2024
update_request = resource_client.generate_update_example(create_request)
2125
_status, response, _error = resource_client.call_and_assert(
@@ -25,4 +29,5 @@ def contract_update_without_create(resource_client):
2529
"message"
2630
], "The progress event MUST return an error message\
2731
when the status is failed"
32+
2833
return _error

0 commit comments

Comments
 (0)