Finish porting from nose to pytest.

This commit is contained in:
Matěj Cepl 2020-10-06 08:04:09 +02:00
commit ea489bce6c
72 changed files with 1289 additions and 1280 deletions

View file

@ -544,11 +544,11 @@ def test_state_machine_start_execution_fails_on_duplicate_execution_name():
stateMachineArn=sm["stateMachineArn"], name="execution_name"
)
#
with pytest.raises(ClientError) as exc:
with pytest.raises(ClientError) as ex:
_ = client.start_execution(
stateMachineArn=sm["stateMachineArn"], name="execution_name"
)
exc.exception.response["Error"]["Message"].should.equal(
ex.value.response["Error"]["Message"].should.equal(
"Execution Already Exists: '" + execution_one["executionArn"] + "'"
)