python3Packages.moto: update disabled tests, drop xdist

Dropping pytest-xdist due to reproducible hangs at the end of the test
run.
This commit is contained in:
Martin Weinelt 2022-04-02 18:32:10 +02:00
parent 008fbda841
commit 3467f4e895

View File

@ -71,14 +71,11 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
freezegun freezegun
pytest-xdist
pytestCheckHook pytestCheckHook
sure sure
]; ];
pytestFlagsArray = [ pytestFlagsArray = [
"--numprocesses $NIX_BUILD_CORES"
# Disable tests that try to access the network # Disable tests that try to access the network
"--deselect=tests/test_cloudformation/test_cloudformation_custom_resources.py::test_create_custom_lambda_resource__verify_cfnresponse_failed" "--deselect=tests/test_cloudformation/test_cloudformation_custom_resources.py::test_create_custom_lambda_resource__verify_cfnresponse_failed"
"--deselect=tests/test_cloudformation/test_server.py::test_cloudformation_server_get" "--deselect=tests/test_cloudformation/test_server.py::test_cloudformation_server_get"
@ -92,9 +89,24 @@ buildPythonPackage rec {
"--deselect=tests/test_sqs/test_sqs_integration.py::test_invoke_function_from_sqs_exception" "--deselect=tests/test_sqs/test_sqs_integration.py::test_invoke_function_from_sqs_exception"
"--deselect=tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_creation_fails_with_invalid_names" "--deselect=tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_creation_fails_with_invalid_names"
"--deselect=tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_list_executions_with_pagination" "--deselect=tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_list_executions_with_pagination"
"--deselect=tests/test_iotdata/test_iotdata.py::test_update"
"--deselect=tests/test_iotdata/test_iotdata.py::test_basic"
"--deselect=tests/test_iotdata/test_iotdata.py::test_delete_field_from_device_shadow"
"--deselect=tests/test_iotdata/test_iotdata.py::test_publish"
"--deselect=tests/test_s3/test_server.py::test_s3_server_bucket_versioning"
# json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) # json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
"--deselect=tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function" "--deselect=tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function"
# AssertionError: CloudWatch log event was not found.
"--deselect=tests/test_logs/test_integration.py::test_subscription_filter_applies_to_new_streams"
# KeyError: 'global'
"--deselect=tests/test_iotdata/test_server.py::test_iotdata_list"
"--deselect=tests/test_iotdata/test_server.py::test_publish"
# Blocks test execution
"--deselect=tests/test_utilities/test_threaded_server.py::TestThreadedMotoServer::test_load_data_from_inmemory_client"
]; ];
disabledTestPaths = [ disabledTestPaths = [