moto/tests/test_cloudformation
Brian Pandola f4b81e69b8
Address pytest warnings (#3629)
* Address `boto` deprecation warnings

This commit eliminates the following warning:

../boto/ec2/connection.py:582:
  PendingDeprecationWarning: The current get_all_instances implementation will be replaced with get_all_reservations.

`boto` isn't likely to ever make good on this warning, but doing the replacement will
declutter the `moto` test output.

* Remove `invoke_lambda` tracebacks from unit test logging

If an exception is encountered, the details are returned in the response payload.
Printing the traceback was just adding noise to the pytest output.

* Use known AMIs in unit tests

This commit eliminates the following warning in the pytest output:

`PendingDeprecationWarning: Could not find AMI with image-id:ami-123456, in the near future this will cause an error.`

Known, pre-loaded AMI image ids are used instead of random ids that don't actually
exist in the moto backend.  The integrity of the tests is unaffected by this change.

A test has been added to provide explicit coverage of the PendingDeprecationWarning
raised when an invalid AMI image id is passed to moto.
2021-01-29 11:31:56 +00:00
..
fixtures Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
__init__.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_cloudformation_depends_on.py Use known AMI in internal tests (#3620) 2021-01-27 19:49:33 +00:00
test_cloudformation_stack_crud_boto3.py Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_cloudformation_stack_crud.py Added explicit exception raise when no stack found. (#3559) 2021-01-16 14:42:51 +00:00
test_cloudformation_stack_integration.py Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_import_value.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
test_server.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
test_stack_parsing.py Remove boto package dependency 2020-11-26 23:59:15 -08:00
test_validate.py Use known ImageID in internal tests (#3555) 2021-01-13 09:02:11 +00:00