File tree Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,23 @@ repos:
61
61
- --no-warn-unused-ignores # https://github.com/python/mypy/issues/8823, https://github.com/python/mypy/issues/8990
62
62
- repo : local
63
63
hooks :
64
- # - id: pylint-local
65
- # name: pylint-local
66
- # description: Run pylint in the local virtualenv
67
- # entry: pylint "setup.py" "src/" "python/" "tests/"
68
- # language: system
69
- # # ignore all files, run on hard-coded modules instead
70
- # pass_filenames: false
71
- # always_run: true
64
+ - id : pylint-local
65
+ name : pylint-local
66
+ description : Run pylint in the local virtualenv
67
+ entry : pylint "setup.py" "src/" "python/" "tests/"
68
+ language : system
69
+ # ignore all files, run on hard-coded modules instead
70
+ pass_filenames : false
71
+ always_run : true
72
72
- id : pytest-local
73
73
name : pytest-local
74
74
description : Run pytest in the local virtualenv
75
75
entry : >
76
76
pytest
77
+ --cov-report=term
78
+ --cov-report=html
79
+ --cov="rpdk.python"
80
+ --cov="cloudformation_cli_python_lib"
77
81
--durations=5
78
82
"tests/"
79
83
language : system
Original file line number Diff line number Diff line change @@ -485,6 +485,10 @@ def test_test_entrypoint_success():
485
485
(OperationStatus .IN_PROGRESS , HookStatus .IN_PROGRESS ),
486
486
(OperationStatus .SUCCESS , HookStatus .SUCCESS ),
487
487
(OperationStatus .FAILED , HookStatus .FAILED ),
488
+ (
489
+ OperationStatus .CHANGE_SET_SUCCESS_SKIP_STACK_HOOK ,
490
+ HookStatus .CHANGE_SET_SUCCESS_SKIP_STACK_HOOK ,
491
+ ),
488
492
],
489
493
)
490
494
def test_get_hook_status (operation_status , hook_status ):
Original file line number Diff line number Diff line change @@ -185,8 +185,9 @@ def test_hook_progress_event_serialize_to_response_with_error_code(message):
185
185
}
186
186
187
187
188
- # add this test back when
189
- # def test_operation_status_enum_matches_sdk(client):
190
- # sdk = set(client.meta.service_model.shape_for("OperationStatus").enum)
191
- # enum = set(OperationStatus.__members__)
192
- # assert enum == sdk
188
+ def test_operation_status_enum_matches_sdk (client ):
189
+ sdk = set (client .meta .service_model .shape_for ("OperationStatus" ).enum )
190
+ enum = set (OperationStatus .__members__ )
191
+ # CHANGE_SET_SUCCESS_SKIP_STACK_HOOK is a status specific to Hooks
192
+ enum .remove ("CHANGE_SET_SUCCESS_SKIP_STACK_HOOK" )
193
+ assert enum == sdk
You can’t perform that action at this time.
0 commit comments