moto/tests
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
..
test_acm Linting 2020-11-11 15:55:37 +00:00
test_apigateway Leave the global responses configuration alone (#3529) 2021-01-15 09:12:41 +00:00
test_applicationautoscaling Linting 2020-11-11 15:55:37 +00:00
test_athena Linting 2020-11-11 15:55:37 +00:00
test_autoscaling Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_awslambda Assume synchronous Lambda invocation by default (#3615) 2021-01-26 13:28:01 +00:00
test_batch Fix Race Condition in batch:SubmitJob (#3480) 2020-11-18 10:49:25 +00:00
test_cloudformation Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_cloudwatch Fix:CloudWatch List metrics with dimensions (#3461) 2020-11-20 12:38:48 +00:00
test_codecommit Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
test_codepipeline Linting 2020-11-11 15:55:37 +00:00
test_cognitoidentity Fix ResourceNotFoundError exception message (#3582) 2021-01-10 13:26:40 +00:00
test_cognitoidp Support cognito admin user password auth flow (#3547) 2020-12-15 07:48:52 +00:00
test_config Linting 2020-11-11 15:55:37 +00:00
test_core Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_datapipeline Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_datasync Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
test_dynamodb Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_dynamodb2 Implement Add to List for dynamodb:UpdateItem (#3585) 2021-01-10 14:20:41 +00:00
test_dynamodbstreams Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_ec2 Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_ec2instanceconnect Improve implementation coverage (and layout) 2020-05-12 14:58:35 +01:00
test_ecr Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_ecs Use known ImageID in internal tests (#3555) 2021-01-13 09:02:11 +00:00
test_elasticbeanstalk Fix: elasticbeanstalk ApplicationArn does not contain ApplicationName (#3511) 2020-12-04 10:31:28 +00:00
test_elb Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_elbv2 Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_emr Fix: EMR ReleaseLabel validation does not respect semantic versioning (#3489) 2020-11-22 18:54:59 +00:00
test_events Add EventBridge Archive CRUD endpoints (#3617) 2021-01-28 10:47:53 +00:00
test_forecast Linting 2020-11-11 15:55:37 +00:00
test_glacier Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_glue Implement full Database object for Glue get_database() - fix for #3571. (#3572) 2021-01-11 13:10:18 +00:00
test_iam Introduce Github Actions to replace TravisCI (#3610) 2021-01-26 12:37:03 +00:00
test_iot IoT: Added Rules implementation (#3552) 2021-01-14 14:52:23 +00:00
test_iotdata Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
test_kinesis Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_kinesisvideo Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_kinesisvideoarchivedmedia Linting 2020-11-11 15:55:37 +00:00
test_kms Linting 2020-11-11 15:55:37 +00:00
test_logs Linting 2020-11-11 15:55:37 +00:00
test_managedblockchain Linting 2020-11-11 15:55:37 +00:00
test_medialive Implementation of core AWS Media Live endpoins (#3428) 2021-01-19 16:11:39 +00:00
test_opsworks Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_organizations Linting 2020-11-11 15:55:37 +00:00
test_packages Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_polly Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_ram Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
test_rds Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_rds2 Fix:RDS:add DBParameterGroupArn in describe-db-parameter-groups & cre… (#3462) 2020-12-01 19:53:01 +00:00
test_redshift Added redshift.get_cluster_credentials (#3611) 2021-01-25 13:19:50 +00:00
test_resourcegroups Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
test_resourcegroupstaggingapi Use known ImageID in internal tests (#3555) 2021-01-13 09:02:11 +00:00
test_route53 Route53: Implement dummy GetChange endpoint (#3486) 2020-11-20 07:21:05 +00:00
test_s3 added sse support for s3 (#3592) 2021-01-18 18:17:13 +00:00
test_s3bucket_path Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_sagemaker Fix: broken build with release of botocore 1.19.62 (#3628) 2021-01-29 09:06:25 +00:00
test_secretsmanager Linting 2020-11-11 15:55:37 +00:00
test_ses Fix:SES:Get Template Html part (#3504) 2020-12-03 07:42:19 +00:00
test_sns Fix:SNS Create FIFO Topic (#3533) 2021-01-26 15:04:52 +00:00
test_sqs Fix: FIFO DLQ locks message group id (#3537) 2020-12-14 09:19:22 +00:00
test_ssm Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
test_stepfunctions test_stepfunctions: Fix failures under non-UTC timezone (#3528) 2020-12-09 12:25:11 +00:00
test_sts Enable AWSLambda and STS mocking for AWS China regions/endpoints (#3574) 2021-01-08 14:22:12 +00:00
test_swf Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_transcribe Linting 2020-11-11 15:55:37 +00:00
test_utilities Use TaggingService for S3 Objects 2020-03-31 12:04:04 +01:00
test_xray Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
__init__.py Address pytest warnings (#3629) 2021-01-29 11:31:56 +00:00
helpers.py Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00