{"language": "Python", "id": 13, "repo_owner": "tiangolo", "repo_name": "fastapi", "head_branch": "master", "workflow_name": "Test", "workflow_filename": "test.yml", "workflow_path": ".github/workflows/test.yml", "contributor": "hubertshelley", "sha_fail": "434321a3efa61e9a1f9eabdfa95b648793ea87df", "sha_success": "404e63b73fbf7a2e10a95deb2f1dfcbc643a23eb", "workflow": "name: Test\n\non:\n push:\n branches:\n - master\n pull_request:\n types:\n - opened\n - synchronize\n\njobs:\n lint:\n runs-on: ubuntu-latest\n steps:\n - name: Dump GitHub context\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n run: echo \"$GITHUB_CONTEXT\"\n - uses: actions/checkout@v4\n - name: Set up Python\n uses: actions/setup-python@v4\n with:\n python-version: \"3.11\"\n # Issue ref: https://github.com/actions/setup-python/issues/436\n # cache: \"pip\"\n # cache-dependency-path: pyproject.toml\n - uses: actions/cache@v3\n id: cache\n with:\n path: ${{ env.pythonLocation }}\n key: ${{ runner.os }}-python-${{ env.pythonLocation }}-pydantic-v2-${{ hashFiles('pyproject.toml', 'requirements-tests.txt', 'requirements-docs-tests.txt') }}-test-v07\n - name: Install Dependencies\n if: steps.cache.outputs.cache-hit != 'true'\n run: pip install -r requirements-tests.txt\n - name: Install Pydantic v2\n run: pip install \"pydantic>=2.0.2,<3.0.0\"\n - name: Lint\n run: bash scripts/lint.sh\n\n test:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n python-version: [\"3.8\", \"3.9\", \"3.10\", \"3.11\"]\n pydantic-version: [\"pydantic-v1\", \"pydantic-v2\"]\n fail-fast: false\n steps:\n - name: Dump GitHub context\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n run: echo \"$GITHUB_CONTEXT\"\n - uses: actions/checkout@v4\n - name: Set up Python\n uses: actions/setup-python@v4\n with:\n python-version: ${{ matrix.python-version }}\n # Issue ref: https://github.com/actions/setup-python/issues/436\n # cache: \"pip\"\n # cache-dependency-path: pyproject.toml\n - uses: actions/cache@v3\n id: cache\n with:\n path: ${{ env.pythonLocation }}\n key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ matrix.pydantic-version }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt', 'requirements-docs-tests.txt') }}-test-v07\n - name: Install Dependencies\n if: steps.cache.outputs.cache-hit != 'true'\n run: pip install -r requirements-tests.txt\n - name: Install Pydantic v1\n if: matrix.pydantic-version == 'pydantic-v1'\n run: pip install \"pydantic>=1.10.0,<2.0.0\"\n - name: Install Pydantic v2\n if: matrix.pydantic-version == 'pydantic-v2'\n run: pip install \"pydantic>=2.0.2,<3.0.0\"\n - run: mkdir coverage\n - name: Test\n run: bash scripts/test.sh\n env:\n COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}\n CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}\n - name: Store coverage files\n uses: actions/upload-artifact@v3\n with:\n name: coverage\n path: coverage\n\n coverage-combine:\n needs: [test]\n runs-on: ubuntu-latest\n steps:\n - name: Dump GitHub context\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n run: echo \"$GITHUB_CONTEXT\"\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v4\n with:\n python-version: '3.8'\n # Issue ref: https://github.com/actions/setup-python/issues/436\n # cache: \"pip\"\n # cache-dependency-path: pyproject.toml\n - name: Get coverage files\n uses: actions/download-artifact@v3\n with:\n name: coverage\n path: coverage\n - run: pip install coverage[toml]\n - run: ls -la coverage\n - run: coverage combine coverage\n - run: coverage report\n - run: coverage html --show-contexts --title \"Coverage for ${{ github.sha }}\"\n - name: Store coverage HTML\n uses: actions/upload-artifact@v3\n with:\n name: coverage-html\n path: htmlcov\n\n # https://github.com/marketplace/actions/alls-green#why\n check: # This job does nothing and is only used for the branch protection\n if: always()\n needs:\n - coverage-combine\n runs-on: ubuntu-latest\n steps:\n - name: Dump GitHub context\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n run: echo \"$GITHUB_CONTEXT\"\n - name: Decide whether the needed jobs succeeded or failed\n uses: re-actors/alls-green@release/v1\n with:\n jobs: ${{ toJSON(needs) }}\n", "logs": [{"step_name": "lint/8_Lint.txt", "log": "##[group]Run bash scripts/lint.sh\n\u001b[36;1mbash scripts/lint.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib\n##[endgroup]\n+ mypy fastapi\nfastapi/dependencies/utils.py:119: error: \"Callable[..., Any]\" has no attribute \"model_fields\" [attr-defined]\nfastapi/dependencies/utils.py:135: error: \"Callable[..., Any]\" has no attribute \"model_fields\" [attr-defined]\nFound 2 errors in 1 file (checked 42 source files)\n##[error]Process completed with exit code 1.\n"}, {"step_name": "test (3.8, pydantic-v1)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.8\n CONTEXT: Linux-py3.8\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:52: in \n async def get_callable_dependency(value: str = Depends(callable_dependency)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:19: in \n async def main_depends(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:20: in \n def foo_handler(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:21: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:22: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:15: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:16: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:19: in \n async def read_items(commons: CommonQueryParams = Depends()):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:20: in \n async def read_items(commons: Annotated[CommonQueryParams, Depends()]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:16: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:17: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:77: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:78: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 11.57s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "test (3.8, pydantic-v2)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.8\n CONTEXT: Linux-py3.8\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:52: in \n async def get_callable_dependency(value: str = Depends(callable_dependency)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:19: in \n async def main_depends(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:20: in \n def foo_handler(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:21: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:22: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:15: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:16: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:19: in \n async def read_items(commons: CommonQueryParams = Depends()):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:20: in \n async def read_items(commons: Annotated[CommonQueryParams, Depends()]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:16: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:17: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:77: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1014: in _gcd_import\n ???\n:991: in _find_and_load\n ???\n:975: in _find_and_load_unlocked\n ???\n:671: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:78: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 12.66s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "test (3.9, pydantic-v1)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.9\n CONTEXT: Linux-py3.9\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:52: in \n async def get_callable_dependency(value: str = Depends(callable_dependency)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:19: in \n async def main_depends(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:20: in \n def foo_handler(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:21: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:22: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:15: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:16: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:19: in \n async def read_items(commons: CommonQueryParams = Depends()):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:20: in \n async def read_items(commons: Annotated[CommonQueryParams, Depends()]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:16: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:17: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:77: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:78: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 11.50s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "test (3.9, pydantic-v2)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.9\n CONTEXT: Linux-py3.9\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:52: in \n async def get_callable_dependency(value: str = Depends(callable_dependency)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:19: in \n async def main_depends(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:20: in \n def foo_handler(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:21: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:22: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:15: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:16: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:19: in \n async def read_items(commons: CommonQueryParams = Depends()):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:20: in \n async def read_items(commons: Annotated[CommonQueryParams, Depends()]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:16: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:17: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:77: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1030: in _gcd_import\n ???\n:1007: in _find_and_load\n ???\n:986: in _find_and_load_unlocked\n ???\n:680: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:78: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 12.63s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "test (3.10, pydantic-v1)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.10\n CONTEXT: Linux-py3.10\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:52: in \n async def get_callable_dependency(value: str = Depends(callable_dependency)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:19: in \n async def main_depends(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:20: in \n def foo_handler(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:21: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:22: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:15: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:16: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:19: in \n async def read_items(commons: CommonQueryParams = Depends()):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:20: in \n async def read_items(commons: Annotated[CommonQueryParams, Depends()]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:16: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:17: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:77: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:78: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 12.33s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "test (3.10, pydantic-v2)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.10\n CONTEXT: Linux-py3.10\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:52: in \n async def get_callable_dependency(value: str = Depends(callable_dependency)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:19: in \n async def main_depends(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:20: in \n def foo_handler(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:21: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:22: in \n async def send_notification(\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:15: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:16: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:19: in \n async def read_items(commons: CommonQueryParams = Depends()):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:20: in \n async def read_items(commons: Annotated[CommonQueryParams, Depends()]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:16: in \n async def read_items(commons: dict = Depends(common_parameters)):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:17: in \n async def read_items(commons: Annotated[dict, Depends(common_parameters)]):\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:77: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1050: in _gcd_import\n ???\n:1027: in _find_and_load\n ???\n:1006: in _find_and_load_unlocked\n ???\n:688: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:78: in \n async def websocket_endpoint(\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 13.19s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "test (3.11, pydantic-v1)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.11\n CONTEXT: Linux-py3.11\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:51: in \n @app.get(\"/callable-dependency\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:18: in \n @app.get(\"/main-depends/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:19: in \n @app.get(\"/foo\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:20: in \n @app.post(\"/send-notification/{email}\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:21: in \n @app.post(\"/send-notification/{email}\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:14: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:15: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:18: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:19: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:15: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:16: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:76: in \n @app.websocket(\"/items/{item_id}/ws\")\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:77: in \n @app.websocket(\"/items/{item_id}/ws\")\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 11.77s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "test (3.11, pydantic-v2)/10_Test.txt", "log": "##[group]Run bash scripts/test.sh\n\u001b[36;1mbash scripts/test.sh\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib\n COVERAGE_FILE: coverage/.coverage.Linux-py3.11\n CONTEXT: Linux-py3.11\n##[endgroup]\n+ export PYTHONPATH=./docs_src\n+ PYTHONPATH=./docs_src\n+ coverage run -m pytest tests\n============================= test session starts ==============================\nplatform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0\nrootdir: /home/runner/work/fastapi/fastapi\nconfigfile: pyproject.toml\nplugins: anyio-3.7.1\ncollected 1952 items / 13 errors\n\n==================================== ERRORS ====================================\n_______________ ERROR collecting tests/test_dependency_class.py ________________\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_class.py:51: in \n @app.get(\"/callable-dependency\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'CallableDependency' object has no attribute 'model_fields'\n_____________ ERROR collecting tests/test_dependency_overrides.py ______________\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_dependency_overrides.py:18: in \n @app.get(\"/main-depends/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n________ ERROR collecting tests/test_enforce_once_required_parameter.py ________\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_enforce_once_required_parameter.py:19: in \n @app.get(\"/foo\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in \n from docs_src.background_tasks.tutorial002 import app\ndocs_src/background_tasks/tutorial002.py:20: in \n @app.post(\"/send-notification/{email}\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in \n from docs_src.background_tasks.tutorial002_an import app\ndocs_src/background_tasks/tutorial002_an.py:21: in \n @app.post(\"/send-notification/{email}\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001.py:5: in \n from docs_src.dependencies.tutorial001 import app\ndocs_src/dependencies/tutorial001.py:14: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in \n from docs_src.dependencies.tutorial001_an import app\ndocs_src/dependencies/tutorial001_an.py:15: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004.py:5: in \n from docs_src.dependencies.tutorial004 import app\ndocs_src/dependencies/tutorial004.py:18: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in \n from docs_src.dependencies.tutorial004_an import app\ndocs_src/dependencies/tutorial004_an.py:19: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in \n from docs_src.dependency_testing.tutorial001 import (\ndocs_src/dependency_testing/tutorial001.py:15: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in \n from docs_src.dependency_testing.tutorial001_an import (\ndocs_src/dependency_testing/tutorial001_an.py:16: in \n @app.get(\"/items/\")\nfastapi/routing.py:956: in decorator\n self.add_api_route(\nfastapi/routing.py:895: in add_api_route\n route = route_class(\nfastapi/routing.py:525: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002.py:5: in \n from docs_src.websockets.tutorial002 import app\ndocs_src/websockets/tutorial002.py:76: in \n @app.websocket(\"/items/{item_id}/ws\")\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call\n result: Optional[TResult] = func()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in \n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect\n self._inject_setup_module_fixture()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\n self.obj, (\"setUpModule\", \"setup_module\")\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj\n self._obj = obj = self._getobj()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj\n return self._importtestmodule()\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path\n importlib.import_module(module_name)\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n:1204: in _gcd_import\n ???\n:1176: in _find_and_load\n ???\n:1147: in _find_and_load_unlocked\n ???\n:690: in _load_unlocked\n ???\n/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in \n from docs_src.websockets.tutorial002_an import app\ndocs_src/websockets/tutorial002_an.py:77: in \n @app.websocket(\"/items/{item_id}/ws\")\nfastapi/applications.py:1245: in decorator\n self.add_api_websocket_route(\nfastapi/applications.py:1183: in add_api_websocket_route\n self.router.add_api_websocket_route(\nfastapi/routing.py:999: in add_api_websocket_route\n route = APIWebSocketRoute(\nfastapi/routing.py:380: in __init__\n self.dependant = get_dependant(path=self.path_format, call=self.endpoint)\nfastapi/dependencies/utils.py:284: in get_dependant\n sub_dependant = get_param_sub_dependant(\nfastapi/dependencies/utils.py:119: in get_param_sub_dependant\n query_param_field = depends.dependency.model_fields.get(query_param.name)\nE AttributeError: 'function' object has no attribute 'model_fields'\n=========================== short test summary info ============================\nERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'\nERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'\nERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'\n!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!\n============================= 13 errors in 12.19s ==============================\n##[error]Process completed with exit code 2.\n"}, {"step_name": "check/3_Decide whether the needed jobs succeeded or failed.txt", "log": "##[group]Run re-actors/alls-green@release/v1\nwith:\n jobs: {\n allowed-failures: []\n allowed-skips: []\n##[endgroup]\n##[group]Run python -m normalize_needed_jobs_status \\\n\u001b[36;1mpython -m normalize_needed_jobs_status \\\u001b[0m\n\u001b[36;1m\"$(cat << EOM\u001b[0m\n\u001b[36;1m []\u001b[0m\n\u001b[36;1mEOM\u001b[0m\n\u001b[36;1m)\" \\\u001b[0m\n\u001b[36;1m\"$(cat << EOM\u001b[0m\n\u001b[36;1m []\u001b[0m\n\u001b[36;1mEOM\u001b[0m\n\u001b[36;1m)\" \\\u001b[0m\n\u001b[36;1m\"$(cat << EOM\u001b[0m\n\u001b[36;1m {\u001b[0m\n\u001b[36;1m \"coverage-combine\": {\u001b[0m\n\u001b[36;1m \"result\": \"skipped\",\u001b[0m\n\u001b[36;1m \"outputs\": {}\u001b[0m\n\u001b[36;1m }\u001b[0m\n\u001b[36;1m}\u001b[0m\n\u001b[36;1mEOM\u001b[0m\n\u001b[36;1m)\"\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n PYTHONPATH: /home/runner/work/_actions/re-actors/alls-green/release/v1/src\n##[endgroup]\n# \u274c Some of the required to succeed jobs failed \ud83d\ude22\ud83d\ude22\ud83d\ude22\n\n\ud83d\udcdd Job statuses:\n\ud83d\udcdd coverage-combine \u2192 \u2b1c skipped [required to succeed]\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/docs/en/docs/reference/exceptions.md b/docs/en/docs/reference/exceptions.md\nindex adc9b91c..7c480834 100644\n--- a/docs/en/docs/reference/exceptions.md\n+++ b/docs/en/docs/reference/exceptions.md\n@@ -3,7 +3,7 @@\n These are the exceptions that you can raise to show errors to the client.\n \n When you raise an exception, as would happen with normal Python, the rest of the\n-excecution is aborted. This way you can raise these exceptions from anywhere in the\n+execution is aborted. This way you can raise these exceptions from anywhere in the\n code to abort a request and show the error to the client.\n \n You can use:\ndiff --git a/docs/en/docs/reference/status.md b/docs/en/docs/reference/status.md\nindex 54fba938..a2380079 100644\n--- a/docs/en/docs/reference/status.md\n+++ b/docs/en/docs/reference/status.md\n@@ -8,7 +8,7 @@ from fastapi import status\n \n `status` is provided directly by Starlette.\n \n-It containes a group of named constants (variables) with integer status codes.\n+It contains a group of named constants (variables) with integer status codes.\n \n For example:\n \ndiff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py\nindex b19db946..b7347348 100644\n--- a/fastapi/dependencies/utils.py\n+++ b/fastapi/dependencies/utils.py\n@@ -108,36 +108,20 @@ def get_param_sub_dependant(\n security_scopes: Optional[List[str]] = None,\n ) -> Dependant:\n assert depends.dependency\n- dependant = get_sub_dependant(\n+ return get_sub_dependant(\n depends=depends,\n dependency=depends.dependency,\n path=path,\n name=param_name,\n security_scopes=security_scopes,\n )\n- for query_param in dependant.query_params:\n- query_param_field = depends.dependency.model_fields.get(query_param.name)\n- if query_param_field:\n- query_param.field_info.description = (\n- query_param_field.description or query_param_field.title or \"\"\n- )\n- return dependant\n \n \n def get_parameterless_sub_dependant(*, depends: params.Depends, path: str) -> Dependant:\n assert callable(\n depends.dependency\n ), \"A parameter-less dependency must have a callable dependency\"\n- dependant = get_sub_dependant(\n- depends=depends, dependency=depends.dependency, path=path\n- )\n- for query_param in dependant.query_params:\n- query_param_field = depends.dependency.model_fields.get(query_param.name)\n- if query_param_field:\n- query_param.field_info.description = (\n- query_param_field.description or query_param_field.title or \"\"\n- )\n- return dependant\n+ return get_sub_dependant(depends=depends, dependency=depends.dependency, path=path)\n \n \n def get_sub_dependant(\n", "difficulty": "2"}