question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.1.10: pytest runs forever many units and in few are failing

See original GitHub issue

I’m packaging your module as an rpm package so I’m using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I’m calling build with --no-isolation I’m using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-moto-3.1.10-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-moto-3.1.10-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -vv --deselect tests/test_batch/test_batch_jobs.py::test_cancel_running_job --deselect tests/test_batch/test_batch_jobs.py::test_container_overrides --deselect tests/test_batch/test_batch_jobs.py::test_dependencies --deselect tests/test_batch/test_batch_jobs.py::test_list_jobs --deselect tests/test_batch/test_batch_jobs.py::test_submit_job --deselect tests/test_batch/test_batch_jobs.py::test_terminate_job --deselect tests/test_cloudformation/test_import_value.py::TestSimpleInstance::test_simple_instance --deselect tests/test_cloudformation/test_import_value.py::TestSimpleInstance::test_simple_instance_missing_export --deselect tests/test_cloudformation/test_server.py::test_cloudformation_server_get --deselect 'tests/test_core/test_url_base_regex.py::TestMockBucketStartingWithServiceName::test_bucketname_starting_with_service_name[cloudformation-]' --deselect 'tests/test_core/test_url_base_regex.py::TestMockBucketStartingWithServiceName::test_bucketname_starting_with_service_name[iotdata-]' --deselect 'tests/test_core/test_url_base_regex.py::TestMockBucketStartingWithServiceName::test_bucketname_starting_with_service_name[lambda-]' --deselect 'tests/test_core/test_url_base_regex.py::TestMockBucketStartingWithServiceName::test_bucketname_starting_with_service_name[resourcegroupstaggingapi-]' --deselect 'tests/test_core/test_url_base_regex.py::TestMockBucketStartingWithServiceName::test_bucketname_starting_with_service_name[xray-]' --deselect tests/test_dynamodbstreams/test_dynamodbstreams.py::TestCore::test_get_records_seq --deselect tests/test_dynamodbstreams/test_dynamodbstreams.py::TestEdges::test_stream_with_range_key --deselect tests/test_dynamodb/test_dynamodb.py::test_put_item_with_streams --deselect tests/test_ec2/test_vpc_endpoint_services_integration.py::test_describe_vpc_default_endpoint_services --deselect tests/test_ec2/test_vpc_endpoint_services_integration.py::test_describe_vpc_endpoint_services_bad_args --deselect tests/test_resourcegroupstaggingapi/test_server.py::test_resourcegroupstaggingapi_list --ignore tests/test_apigateway/test_apigateway_cloudformation.py --ignore tests/test_autoscaling/test_autoscaling_cloudformation.py --ignore tests/test_awslambda/test_awslambda_cloudformation.py --ignore tests/test_awslambda/test_lambda_alias.py --ignore tests/test_awslambda/test_lambda_concurrency.py --ignore tests/test_awslambda/test_lambda_eventsourcemapping.py --ignore tests/test_awslambda/test_lambda_invoke.py --ignore tests/test_awslambda/test_lambda_layers.py --ignore tests/test_awslambda/test_lambda_policy.py --ignore tests/test_awslambda/test_lambda.py --ignore tests/test_awslambda/test_lambda_tags.py --ignore tests/test_awslambda/test_policy.py --ignore tests/test_batch_simple/test_batch_cloudformation.py --ignore tests/test_batch/test_batch_cloudformation.py --ignore tests/test_cloudformation/test_cloudformation_custom_resources.py --ignore tests/test_cloudformation/test_cloudformation_depends_on.py --ignore tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py --ignore tests/test_cloudformation/test_cloudformation_stack_integration.py --ignore tests/test_cloudformation/test_cloudformation_stack_policies.py --ignore tests/test_cloudformation/test_stack_parsing.py --ignore tests/test_cloudformation/test_validate.py --ignore tests/test_config/test_config_rules_integration.py --ignore tests/test_core/test_mock_all.py --ignore tests/test_datapipeline/test_datapipeline_cloudformation.py --ignore tests/test_dynamodb/test_dynamodb_cloudformation.py --ignore tests/test_ec2/test_ec2_cloudformation.py --ignore tests/test_ec2/test_flow_logs_cloudformation.py --ignore tests/test_ec2/test_security_groups_cloudformation.py --ignore tests/test_ec2/test_transit_gateway_cloudformation.py --ignore tests/test_ecr/test_ecr_cloudformation.py --ignore tests/test_ecs/test_ecs_cloudformation.py --ignore tests/test_elb/test_elb_cloudformation.py --ignore tests/test_elbv2/test_elbv2_cloudformation.py --ignore tests/test_events/test_events_cloudformation.py --ignore tests/test_iam/test_iam_cloudformation.py --ignore tests/test_iotdata/test_iotdata.py --ignore tests/test_iotdata/test_server.py --ignore tests/test_kinesis/test_kinesis_cloudformation.py --ignore tests/test_logs/test_integration.py --ignore tests/test_rds/test_rds_cloudformation.py --ignore tests/test_redshift/test_redshift_cloudformation.py --ignore tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py --ignore tests/test_route53/test_route53_cloudformation.py --ignore tests/test_s3/test_s3_cloudformation.py --ignore tests/test_s3/test_s3_lambda_integration.py --ignore tests/test_sagemaker/test_sagemaker_cloudformation.py --ignore tests/test_secretsmanager/test_server.py --ignore tests/test_sns/test_sns_cloudformation.py --ignore tests/test_sqs/test_integration.py --ignore tests/test_sqs/test_sqs_cloudformation.py --ignore tests/test_sqs/test_sqs_integration.py --ignore tests/test_ssm/test_ssm_cloudformation.py --ignore tests/test_stepfunctions/test_stepfunctions_cloudformation.py --ignore tests/test_xray/test_xray_boto3.py --ignore tests/test_xray/test_xray_client.py --deselect tests/test_ec2/test_customer_gateways.py::test_create_customer_gateways_boto3
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /home/tkloczko/rpmbuild/BUILD/moto-3.1.10, configfile: setup.cfg
collected 5977 items / 24 deselected / 5953 selected

tests/test_acm/test_acm.py::test_import_certificate PASSED                                                                                                           [  0%]
tests/test_acm/test_acm.py::test_import_certificate_with_tags PASSED                                                                                                 [  0%]
tests/test_acm/test_acm.py::test_import_bad_certificate PASSED                                                                                                       [  0%]
tests/test_acm/test_acm.py::test_list_certificates PASSED                                                                                                            [  0%]
tests/test_acm/test_acm.py::test_list_certificates_by_status PASSED                                                                                                  [  0%]
tests/test_acm/test_acm.py::test_get_invalid_certificate PASSED                                                                                                      [  0%]
tests/test_acm/test_acm.py::test_delete_certificate PASSED                                                                                                           [  0%]
tests/test_acm/test_acm.py::test_describe_certificate PASSED                                                                                                         [  0%]
tests/test_acm/test_acm.py::test_describe_certificate_with_bad_arn PASSED                                                                                            [  0%]
tests/test_acm/test_acm.py::test_export_certificate PASSED                                                                                                           [  0%]
tests/test_acm/test_acm.py::test_export_certificate_with_bad_arn PASSED                                                                                              [  0%]
tests/test_acm/test_acm.py::test_add_tags_to_certificate PASSED                                                                                                      [  0%]
tests/test_acm/test_acm.py::test_add_tags_to_invalid_certificate PASSED                                                                                              [  0%]
tests/test_acm/test_acm.py::test_list_tags_for_invalid_certificate PASSED                                                                                            [  0%]
tests/test_acm/test_acm.py::test_remove_tags_from_certificate PASSED                                                                                                 [  0%]
tests/test_acm/test_acm.py::test_remove_tags_from_invalid_certificate PASSED                                                                                         [  0%]
tests/test_acm/test_acm.py::test_resend_validation_email PASSED                                                                                                      [  0%]
tests/test_acm/test_acm.py::test_resend_validation_email_invalid PASSED                                                                                              [  0%]
tests/test_acm/test_acm.py::test_request_certificate PASSED                                                                                                          [  0%]
tests/test_acm/test_acm.py::test_request_certificate_with_tags PASSED                                                                                                [  0%]
tests/test_acm/test_acm.py::test_operations_with_invalid_tags PASSED                                                                                                 [  0%]
tests/test_acm/test_acm.py::test_add_too_many_tags PASSED                                                                                                            [  0%]
tests/test_acm/test_acm.py::test_request_certificate_no_san PASSED                                                                                                   [  0%]
tests/test_acm/test_acm.py::test_request_certificate_issued_status PASSED                                                                                            [  0%]
tests/test_acm/test_acm.py::test_request_certificate_issued_status_with_wait_in_envvar PASSED                                                                        [  0%]
tests/test_acm/test_acm.py::test_request_certificate_with_mutiple_times PASSED                                                                                       [  0%]
tests/test_acm/test_acm.py::test_elb_acm_in_use_by PASSED                                                                                                            [  0%]
tests/test_apigateway/test_apigateway.py::test_create_and_get_rest_api PASSED                                                                                        [  0%]
tests/test_apigateway/test_apigateway.py::test_update_rest_api PASSED                                                                                                [  0%]
tests/test_apigateway/test_apigateway.py::test_update_rest_api_invalid_api_id PASSED                                                                                 [  0%]
tests/test_apigateway/test_apigateway.py::test_update_rest_api_operation_add_remove PASSED                                                                           [  0%]
tests/test_apigateway/test_apigateway.py::test_list_and_delete_apis PASSED                                                                                           [  0%]
tests/test_apigateway/test_apigateway.py::test_create_rest_api_with_tags PASSED                                                                                      [  0%]
tests/test_apigateway/test_apigateway.py::test_create_rest_api_with_policy PASSED                                                                                    [  0%]
tests/test_apigateway/test_apigateway.py::test_create_rest_api_invalid_apikeysource PASSED                                                                           [  0%]
tests/test_apigateway/test_apigateway.py::test_create_rest_api_valid_apikeysources PASSED                                                                            [  0%]
tests/test_apigateway/test_apigateway.py::test_create_rest_api_invalid_endpointconfiguration PASSED                                                                  [  0%]
tests/test_apigateway/test_apigateway.py::test_create_rest_api_valid_endpointconfigurations PASSED                                                                   [  0%]
tests/test_apigateway/test_apigateway.py::test_create_resource__validate_name PASSED                                                                                 [  0%]
tests/test_apigateway/test_apigateway.py::test_create_resource PASSED                                                                                                [  0%]
tests/test_apigateway/test_apigateway.py::test_child_resource PASSED                                                                                                 [  0%]
tests/test_apigateway/test_apigateway.py::test_create_method PASSED                                                                                                  [  0%]
tests/test_apigateway/test_apigateway.py::test_create_method_apikeyrequired PASSED                                                                                   [  0%]
tests/test_apigateway/test_apigateway.py::test_create_method_response PASSED                                                                                         [  0%]
tests/test_apigateway/test_apigateway.py::test_get_method_unknown_resource_id PASSED                                                                                 [  0%]
tests/test_apigateway/test_apigateway.py::test_delete_method PASSED                                                                                                  [  0%]
tests/test_apigateway/test_apigateway.py::test_integrations PASSED                                                                                                   [  0%]
tests/test_apigateway/test_apigateway.py::test_integration_response PASSED                                                                                           [  0%]
tests/test_apigateway/test_apigateway.py::test_update_authorizer_configuration PASSED                                                                                [  0%]
tests/test_apigateway/test_apigateway.py::test_non_existent_authorizer PASSED                                                                                        [  0%]
tests/test_apigateway/test_apigateway.py::test_create_authorizer PASSED                                                                                              [  0%]
tests/test_apigateway/test_apigateway.py::test_delete_authorizer PASSED                                                                                              [  0%]
tests/test_apigateway/test_apigateway.py::test_put_integration_response_with_response_template PASSED                                                                [  0%]
tests/test_apigateway/test_apigateway.py::test_put_integration_validation PASSED                                                                                     [  0%]
tests/test_apigateway/test_apigateway.py::test_create_domain_names PASSED                                                                                            [  0%]
tests/test_apigateway/test_apigateway.py::test_get_domain_names PASSED                                                                                               [  0%]
tests/test_apigateway/test_apigateway.py::test_get_domain_name PASSED                                                                                                [  0%]
tests/test_apigateway/test_apigateway.py::test_create_model PASSED                                                                                                   [  0%]
tests/test_apigateway/test_apigateway.py::test_get_api_models PASSED                                                                                                 [  0%]
tests/test_apigateway/test_apigateway.py::test_get_model_by_name PASSED                                                                                              [  1%]
tests/test_apigateway/test_apigateway.py::test_get_model_with_invalid_name PASSED                                                                                    [  1%]
tests/test_apigateway/test_apigateway.py::test_api_key_value_min_length PASSED                                                                                       [  1%]
tests/test_apigateway/test_apigateway.py::test_get_api_key_include_value PASSED                                                                                      [  1%]
tests/test_apigateway/test_apigateway.py::test_get_api_keys_include_values PASSED                                                                                    [  1%]
tests/test_apigateway/test_apigateway.py::test_create_api_key PASSED                                                                                                 [  1%]
tests/test_apigateway/test_apigateway.py::test_create_api_key_twice PASSED                                                                                           [  1%]
tests/test_apigateway/test_apigateway.py::test_api_keys PASSED                                                                                                       [  1%]
tests/test_apigateway/test_apigateway.py::test_usage_plans PASSED                                                                                                    [  1%]
tests/test_apigateway/test_apigateway.py::test_update_usage_plan PASSED                                                                                              [  1%]
tests/test_apigateway/test_apigateway.py::test_usage_plan_keys PASSED                                                                                                [  1%]
tests/test_apigateway/test_apigateway.py::test_create_usage_plan_key_non_existent_api_key PASSED                                                                     [  1%]
tests/test_apigateway/test_apigateway.py::test_get_usage_plans_using_key_id PASSED                                                                                   [  1%]
tests/test_apigateway/test_apigateway.py::test_get_integration_response_unknown_response PASSED                                                                      [  1%]
tests/test_apigateway/test_apigateway.py::test_get_api_key_unknown_apikey PASSED                                                                                     [  1%]
tests/test_apigateway/test_apigateway.py::test_get_domain_name_unknown_domainname PASSED                                                                             [  1%]
tests/test_apigateway/test_apigateway.py::test_update_domain_name_unknown_domainname PASSED                                                                          [  1%]
tests/test_apigateway/test_apigateway.py::test_delete_domain_name_unknown_domainname PASSED                                                                          [  1%]
tests/test_apigateway/test_apigateway.py::test_create_base_path_mapping PASSED                                                                                       [  1%]
tests/test_apigateway/test_apigateway.py::test_create_base_path_mapping_with_unknown_api PASSED                                                                      [  1%]
tests/test_apigateway/test_apigateway.py::test_create_base_path_mapping_with_invalid_base_path PASSED                                                                [  1%]
tests/test_apigateway/test_apigateway.py::test_create_base_path_mapping_with_unknown_stage PASSED                                                                    [  1%]
tests/test_apigateway/test_apigateway.py::test_create_base_path_mapping_with_duplicate_base_path PASSED                                                              [  1%]
tests/test_apigateway/test_apigateway.py::test_get_base_path_mappings PASSED                                                                                         [  1%]
tests/test_apigateway/test_apigateway.py::test_get_base_path_mappings_with_unknown_domain PASSED                                                                     [  1%]
tests/test_apigateway/test_apigateway.py::test_get_base_path_mapping PASSED                                                                                          [  1%]
tests/test_apigateway/test_apigateway.py::test_get_base_path_mapping_with_unknown_domain PASSED                                                                      [  1%]
tests/test_apigateway/test_apigateway.py::test_get_base_path_mapping_with_unknown_base_path PASSED                                                                   [  1%]
tests/test_apigateway/test_apigateway.py::test_delete_base_path_mapping PASSED                                                                                       [  1%]
tests/test_apigateway/test_apigateway.py::test_delete_base_path_mapping_with_unknown_domain PASSED                                                                   [  1%]
tests/test_apigateway/test_apigateway.py::test_delete_base_path_mapping_with_unknown_base_path PASSED                                                                [  1%]
tests/test_apigateway/test_apigateway.py::test_update_path_mapping PASSED                                                                                            [  1%]
tests/test_apigateway/test_apigateway.py::test_update_path_mapping_with_unknown_domain PASSED                                                                        [  1%]
tests/test_apigateway/test_apigateway.py::test_update_path_mapping_with_unknown_base_path PASSED                                                                     [  1%]
tests/test_apigateway/test_apigateway.py::test_update_path_mapping_to_same_base_path PASSED                                                                          [  1%]
tests/test_apigateway/test_apigateway.py::test_update_path_mapping_with_unknown_api PASSED                                                                           [  1%]
tests/test_apigateway/test_apigateway.py::test_update_path_mapping_with_unknown_stage PASSED                                                                         [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_create_deployment_requires_REST_methods PASSED                                                            [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_create_deployment_requires_REST_method_integrations PASSED                                                [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_create_simple_deployment_with_get_method PASSED                                                           [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_create_simple_deployment_with_post_method PASSED                                                          [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_create_deployment_minimal PASSED                                                                          [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_create_deployment_with_empty_stage PASSED                                                                 [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_get_deployments PASSED                                                                                    [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_create_multiple_deployments PASSED                                                                        [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_delete_deployment__requires_stage_to_be_deleted PASSED                                                    [  1%]
tests/test_apigateway/test_apigateway_deployments.py::test_delete_unknown_deployment PASSED                                                                          [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_put_gateway_response_minimal PASSED                                                                  [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_put_gateway_response PASSED                                                                          [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_get_gateway_response_minimal PASSED                                                                  [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_get_gateway_response PASSED                                                                          [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_get_gateway_response_unknown PASSED                                                                  [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_get_gateway_responses_empty PASSED                                                                   [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_get_gateway_responses PASSED                                                                         [  1%]
tests/test_apigateway/test_apigateway_gatewayresponses.py::test_delete_gateway_response PASSED                                                                       [  1%]
tests/test_apigateway/test_apigateway_importrestapi.py::test_import_rest_api__api_is_created PASSED                                                                  [  1%]
tests/test_apigateway/test_apigateway_importrestapi.py::test_import_rest_api__invalid_api_creates_nothing PASSED                                                     [  1%]
tests/test_apigateway/test_apigateway_importrestapi.py::test_import_rest_api__methods_are_created PASSED                                                             [  1%]
tests/test_apigateway/test_apigateway_integration.py::test_http_integration PASSED                                                                                   [  1%]
tests/test_apigateway/test_apigateway_integration.py::test_aws_integration_dynamodb PASSED                                                                           [  1%]
tests/test_apigateway/test_apigateway_integration.py::test_aws_integration_dynamodb_multiple_stages PASSED                                                           [  2%]
tests/test_apigateway/test_apigateway_integration.py::test_aws_integration_dynamodb_multiple_resources PASSED                                                        [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__api_details_are_persisted PASSED                                                             [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__methods_are_created PASSED                                                                   [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__existing_methods_are_overwritten PASSED                                                      [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__existing_methods_still_exist PASSED                                                          [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__fail_on_invalid_spec PASSED                                                                  [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__fail_on_invalid_version PASSED                                                               [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__fail_on_invalid_mode PASSED                                                                  [  2%]
tests/test_apigateway/test_apigateway_putrestapi.py::test_put_rest_api__as_yaml PASSED                                                                               [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_create_stage_minimal PASSED                                                                                     [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_create_stage_with_env_vars PASSED                                                                               [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_create_stage_with_vars_and_cache PASSED                                                                         [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_create_stage_with_cache_settings PASSED                                                                         [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_recreate_stage_from_deployment PASSED                                                                           [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_create_stage_twice PASSED                                                                                       [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_delete_stage PASSED                                                                                             [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_delete_stage_created_by_deployment PASSED                                                                       [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_delete_stage_unknown_stage PASSED                                                                               [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_update_stage_configuration PASSED                                                                               [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_update_stage_add_access_log_settings PASSED                                                                     [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_update_stage_tracing_disabled PASSED                                                                            [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_update_stage_remove_access_log_settings PASSED                                                                  [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_update_stage_configuration_unknown_operation PASSED                                                             [  2%]
tests/test_apigateway/test_apigateway_stage.py::test_non_existent_stage PASSED                                                                                       [  2%]
tests/test_apigateway/test_apigateway_validators.py::test_create_request_validator PASSED                                                                            [  2%]
tests/test_apigateway/test_apigateway_validators.py::test_get_request_validators PASSED                                                                              [  2%]
tests/test_apigateway/test_apigateway_validators.py::test_get_request_validator PASSED                                                                               [  2%]
tests/test_apigateway/test_apigateway_validators.py::test_delete_request_validator PASSED                                                                            [  2%]
tests/test_apigateway/test_apigateway_validators.py::test_update_request_validator PASSED                                                                            [  2%]
tests/test_apigateway/test_apigateway_vpclink.py::test_get_vpc_links_empty PASSED                                                                                    [  2%]
tests/test_apigateway/test_apigateway_vpclink.py::test_create_vpc_link PASSED                                                                                        [  2%]
tests/test_apigateway/test_apigateway_vpclink.py::test_get_vpc_link PASSED                                                                                           [  2%]
tests/test_apigateway/test_apigateway_vpclink.py::test_get_vpc_link_unknown PASSED                                                                                   [  2%]
tests/test_apigateway/test_apigateway_vpclink.py::test_get_vpc_links PASSED                                                                                          [  2%]
tests/test_apigateway/test_apigateway_vpclink.py::test_delete_vpc_link PASSED                                                                                        [  2%]
tests/test_apigateway/test_server.py::test_list_apis

BTW I’ve added all units which requires docker and aws_xray_sdk do --deselect list because I have no packaged yest those modules. Is it really necessary to use docker? virtualenv cannot be used instead?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
bblommerscommented, Aug 5, 2022

I’m going to close this in favor of #5341 - the comment there explains the failing unit tests.

The pytest warnings will be solved at some points, but that is not very high prio.

0reactions
kloczekcommented, Aug 1, 2022

So what about those failing units and pytest warnings? Needs to be added to ToDo list? 😋

Read more comments on GitHub >

github_iconTop Results From Across the Web

3.1.20: pytest (6.2.4) error · Issue #1324 - GitHub
I'm trying to package your module as rpm packag. So I'm using typical in such case build, install and test cycle used on...
Read more >
What to do when a py.test hangs silently? - Stack Overflow
Run with py.test -m trace --trace to get trace of python calls. ... The test suite ran fine locally, but failed in CircleCI...
Read more >
How to handle test failures — pytest documentation
This will invoke the Python debugger on every failure (or KeyboardInterrupt). Often you might only want to do this for the first failing...
Read more >
pytest-benchmark - Read the Docs
--benchmark-compare-fail=EXPR Fail test if performance regresses according to given. EXPR (eg: min:5% or mean:0.001 for number of seconds). Can ...
Read more >
How To Debug A Hanging Test Using Pytest - PyBites
Today a wanted to share a neat trick that might save you some headache: debugging a hanging test.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found