Debian Codegraph @

debian/tests/upstream-tests

raw
1 #!/bin/bash
2
3 set -e -u
4
5 cp -a docs tests "${AUTOPKGTEST_TMP}"
6
7 PYTEST_OPTIONS="\
8 --ignore=${AUTOPKGTEST_TMP}/docs/examples/testing/test_subprocess_sse.py \
9 --ignore=${AUTOPKGTEST_TMP}/tests/e2e/test_advanced_alchemy.py \
10 --ignore=${AUTOPKGTEST_TMP}/tests/examples/test_contrib/test_sqlalchemy/plugins/test_example_apps.py \
11 --ignore=${AUTOPKGTEST_TMP}/tests/examples/test_contrib/test_sqlalchemy/plugins/test_tutorial_example_apps.py \
12 --ignore=${AUTOPKGTEST_TMP}/tests/examples/test_contrib/test_sqlalchemy/test_sqlalchemy_examples.py \
13 --ignore=${AUTOPKGTEST_TMP}/tests/examples/test_data_transfer_objects/test_factory/test_type_checking.py \
14 --ignore=${AUTOPKGTEST_TMP}/tests/examples/test_dto/test_example_apps.py \
15 --ignore=${AUTOPKGTEST_TMP}/tests/examples/test_plugins/test_sqlalchemy_init_plugin.py \
16 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_app.py \
17 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_channels/test_backends.py \
18 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_channels/test_plugin.py \
19 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_cli/test_core_commands.py \
20 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_cli/test_schema_commands.py \
21 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_contrib/test_opentelemetry.py \
22 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_contrib/test_sqlalchemy.py \
23 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_dto/test_factory/test_integration.py \
24 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_file_system.py \
25 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_kwargs/test_validations.py \
26 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_middleware/test_rate_limit_middleware.py \
27 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_openapi \
28 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_plugins/test_base.py \
29 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_plugins/test_opentelemetry.py \
30 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_plugins/test_sqlalchemy.py \
31 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_stores.py \
32 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_testing/test_sub_client/test_subprocess_client.py \
33 --ignore=${AUTOPKGTEST_TMP}/tests/unit/test_testing/test_test_client.py \
34 "
35
36 for py3vers in $(py3versions -s); do
37 echo
38 echo "***************************"
39 echo "*** Testing with ${py3vers}"
40 echo "***************************"
41 echo
42 cd ${AUTOPKGTEST_TMP} && \
43 echo -e "Content of current working folder:\n" && \
44 pwd && \
45 ls -la && \
46 echo -e "Running tests...\n" && \
47 PYTHONPATH=. "${py3vers}" -m pytest $PYTEST_OPTIONS -k \
48 "not test_backlog \
49 and not test_deprecated_default_warns \
50 and not test_file_adapter_info_handles_permission_exception \
51 and not test_file_adapter_open_handles_permission_exception \
52 and not test_jwt_auth \
53 and not test_jwt_cookie_auth \
54 and not test_prometheus_exporter_metrics_with_http \
55 and not test_qsize \
56 and not test_request_body \
57 and not test_request_body_logging_middleware \
58 and not test_request_stream \
59 and not test_sqlalchemy_declarative_models \
60 and not test_tutorial_example_apps.py \
61 and not test_warn_default_inside_kwarg_definition_and_default_empty \
62 and not test_with_portal \
63 and not test_with_stores \
64 " tests && \
65 rm -rf .pytest_cache || exit 1
66 done
67
68 echo
69
70 exit 0
71
72