6 |
6 |
DISTUTILS_USE_PEP517=setuptools
|
7 |
7 |
PYTHON_COMPAT=( python3_{10..11} )
|
8 |
8 |
|
9 |
|
inherit distutils-r1 pypi
|
|
9 |
inherit distutils-r1 multiprocessing pypi
|
10 |
10 |
|
11 |
11 |
DESCRIPTION="Mock library for boto"
|
12 |
12 |
HOMEPAGE="
|
... | ... | |
16 |
16 |
|
17 |
17 |
LICENSE="Apache-2.0"
|
18 |
18 |
SLOT="0"
|
19 |
|
KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
|
|
19 |
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
20 |
20 |
|
21 |
21 |
RDEPEND="
|
22 |
22 |
>=dev-python/aws-xray-sdk-0.93[${PYTHON_USEDEP}]
|
... | ... | |
49 |
49 |
BDEPEND="
|
50 |
50 |
test? (
|
51 |
51 |
dev-python/freezegun[${PYTHON_USEDEP}]
|
|
52 |
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
52 |
53 |
dev-python/responses[${PYTHON_USEDEP}]
|
53 |
54 |
>=dev-python/sure-1.4.11[${PYTHON_USEDEP}]
|
54 |
55 |
)
|
... | ... | |
65 |
66 |
tests/test_appsync/test_appsync_schema.py
|
66 |
67 |
# Needs network (or docker?) but not marked as such, bug #807031
|
67 |
68 |
# TODO: report upstream
|
|
69 |
tests/test_awslambda/test_lambda_layers_invoked.py::test_invoke_local_lambda_layers
|
68 |
70 |
tests/test_batch/test_batch_jobs.py::test_cancel_pending_job
|
69 |
71 |
tests/test_batch/test_batch_jobs.py::test_cancel_running_job
|
70 |
72 |
tests/test_batch/test_batch_jobs.py::test_container_overrides
|
... | ... | |
97 |
99 |
|
98 |
100 |
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
99 |
101 |
local -x TZ=UTC
|
100 |
|
# note: pytest-xdist causes random test failures
|
101 |
|
epytest -m 'not network'
|
|
102 |
|
|
103 |
local serial_tests=(
|
|
104 |
# these tests set up credentials that are needed by the tests below
|
|
105 |
tests/test_core/test_importorder.py
|
|
106 |
# these tests apparently rely on some other test setting credentials
|
|
107 |
# up for them, so they need to be run separately, after the above
|
|
108 |
tests/test_redshiftdata
|
|
109 |
tests/test_resourcegroupstaggingapi/test_server.py::test_resourcegroupstaggingapi_list
|
|
110 |
tests/test_s3/test_s3.py::test_delete_bucket_cors
|
|
111 |
tests/test_s3/test_s3.py::test_delete_versioned_bucket_returns_metadata
|
|
112 |
tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosuresUsingMocks
|
|
113 |
tests/test_utilities/test_threaded_server.py::TestThreadedMotoServer::test_server_can_handle_multiple_services
|
|
114 |
)
|
|
115 |
|
|
116 |
epytest "${serial_tests[@]}"
|
|
117 |
|
|
118 |
EPYTEST_DESELECT+=( "${serial_tests[@]}" )
|
|
119 |
epytest -m 'not network' -p xdist -n "$(makeopts_jobs)" --dist=worksteal
|
102 |
120 |
}
|