๐Ÿ“ฆ Significant-Gravitas / opensoft

๐Ÿ“„ .report.json ยท 1 lines
1{"created": 1697035630.484915, "duration": 0.18269014358520508, "exitcode": 1, "root": "/Users/merwanehamadi/code/opensoft", "environment": {}, "summary": {"failed": 1, "passed": 1, "total": 2, "collected": 2}, "collectors": [{"nodeid": "", "outcome": "passed", "result": [{"nodeid": "pages/user_feedback/__init__.py", "type": "Package"}, {"nodeid": "pages/user_feedback/v1/__init__.py", "type": "Package"}, {"nodeid": "pages/user_feedback/v1/tests/__init__.py", "type": "Package"}]}, {"nodeid": "pages/user_feedback/__init__.py", "outcome": "passed", "result": []}, {"nodeid": "pages/user_feedback/v1/__init__.py", "outcome": "passed", "result": []}, {"nodeid": "pages/user_feedback/v1/tests/test_backend.py", "outcome": "passed", "result": [{"nodeid": "pages/user_feedback/v1/tests/test_backend.py::test_submitting_feedback[http://127.0.0.1:8000/v1/b1]", "type": "Function", "lineno": 3}, {"nodeid": "pages/user_feedback/v1/tests/test_backend.py::test_submitting_feedback_with_invalid_content[http://127.0.0.1:8000/v1/b1]", "type": "Function", "lineno": 17}]}, {"nodeid": "pages/user_feedback/v1/tests/__init__.py", "outcome": "passed", "result": [{"nodeid": "pages/user_feedback/v1/tests/test_backend.py", "type": "Module"}]}], "tests": [{"nodeid": "pages/user_feedback/v1/tests/test_backend.py::test_submitting_feedback[http://127.0.0.1:8000/v1/b1]", "lineno": 3, "outcome": "failed", "keywords": ["test_submitting_feedback[http://127.0.0.1:8000/v1/b1]", "asyncio", "pytestmark", "http://127.0.0.1:8000/v1/b1", "test_backend.py", "pages/user_feedback/v1/tests/__init__.py", "opensoft"], "setup": {"duration": 0.00505299999986164, "outcome": "passed"}, "call": {"duration": 0.0007547499999418505, "outcome": "failed", "crash": {"path": "/Users/merwanehamadi/Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/routing.py", "lineno": 154, "message": "fastapi.exceptions.ResponseValidationError: 1 validation errors:\n  {'loc': ('response',), 'msg': 'none is not an allowed value', 'type': 'type_error.none.not_allowed'}"}, "traceback": [{"path": "/Users/merwanehamadi/code/flywheel/src/user_feedback/v1/tests/test_backend.py", "lineno": 9, "message": ""}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py", "lineno": 1848, "message": "in post"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py", "lineno": 1530, "message": "in request"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py", "lineno": 1617, "message": "in send"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py", "lineno": 1645, "message": "in _send_handling_auth"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py", "lineno": 1682, "message": "in _send_handling_redirects"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py", "lineno": 1719, "message": "in _send_single_request"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_transports/asgi.py", "lineno": 162, "message": "in handle_async_request"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/applications.py", "lineno": 292, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/applications.py", "lineno": 122, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", "lineno": 184, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", "lineno": 162, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/cors.py", "lineno": 83, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py", "lineno": 79, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py", "lineno": 68, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", "lineno": 20, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", "lineno": 17, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/routing.py", "lineno": 718, "message": "in __call__"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/routing.py", "lineno": 276, "message": "in handle"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/routing.py", "lineno": 66, "message": "in app"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/routing.py", "lineno": 291, "message": "in app"}, {"path": "../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/routing.py", "lineno": 154, "message": "ResponseValidationError"}], "longrepr": "client = <httpx.AsyncClient object at 0x11666bb50>\n\n>   ???\n\n/Users/merwanehamadi/code/flywheel/src/user_feedback/v1/tests/test_backend.py:9: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py:1848: in post\n    return await self.request(\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py:1530: in request\n    return await self.send(request, auth=auth, follow_redirects=follow_redirects)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py:1617: in send\n    response = await self._send_handling_auth(\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py:1645: in _send_handling_auth\n    response = await self._send_handling_redirects(\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py:1682: in _send_handling_redirects\n    response = await self._send_single_request(request)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_client.py:1719: in _send_single_request\n    response = await transport.handle_async_request(request)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/httpx/_transports/asgi.py:162: in handle_async_request\n    await self.app(scope, receive, send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/applications.py:292: in __call__\n    await super().__call__(scope, receive, send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/applications.py:122: in __call__\n    await self.middleware_stack(scope, receive, send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py:184: in __call__\n    raise exc\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py:162: in __call__\n    await self.app(scope, receive, _send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/cors.py:83: in __call__\n    await self.app(scope, receive, send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py:79: in __call__\n    raise exc\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py:68: in __call__\n    await self.app(scope, receive, sender)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py:20: in __call__\n    raise e\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py:17: in __call__\n    await self.app(scope, receive, send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/routing.py:718: in __call__\n    await route.handle(scope, receive, send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/routing.py:276: in handle\n    await self.app(scope, receive, send)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/starlette/routing.py:66: in app\n    response = await func(request)\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/routing.py:291: in app\n    content = await serialize_response(\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n    async def serialize_response(\n        *,\n        field: Optional[ModelField] = None,\n        response_content: Any,\n        include: Optional[IncEx] = None,\n        exclude: Optional[IncEx] = None,\n        by_alias: bool = True,\n        exclude_unset: bool = False,\n        exclude_defaults: bool = False,\n        exclude_none: bool = False,\n        is_coroutine: bool = True,\n    ) -> Any:\n        if field:\n            errors = []\n            if not hasattr(field, \"serialize\"):\n                # pydantic v1\n                response_content = _prepare_response_content(\n                    response_content,\n                    exclude_unset=exclude_unset,\n                    exclude_defaults=exclude_defaults,\n                    exclude_none=exclude_none,\n                )\n            if is_coroutine:\n                value, errors_ = field.validate(response_content, {}, loc=(\"response\",))\n            else:\n                value, errors_ = await run_in_threadpool(\n                    field.validate, response_content, {}, loc=(\"response\",)\n                )\n            if isinstance(errors_, list):\n                errors.extend(errors_)\n            elif errors_:\n                errors.append(errors_)\n            if errors:\n>               raise ResponseValidationError(\n                    errors=_normalize_errors(errors), body=response_content\n                )\nE               fastapi.exceptions.ResponseValidationError: 1 validation errors:\nE                 {'loc': ('response',), 'msg': 'none is not an allowed value', 'type': 'type_error.none.not_allowed'}\n\n../../Library/Caches/pypoetry/virtualenvs/src-QDscG3CI-py3.11/lib/python3.11/site-packages/fastapi/routing.py:154: ResponseValidationError"}, "teardown": {"duration": 0.003856584000004659, "outcome": "passed"}}, {"nodeid": "pages/user_feedback/v1/tests/test_backend.py::test_submitting_feedback_with_invalid_content[http://127.0.0.1:8000/v1/b1]", "lineno": 17, "outcome": "passed", "keywords": ["test_submitting_feedback_with_invalid_content[http://127.0.0.1:8000/v1/b1]", "asyncio", "pytestmark", "http://127.0.0.1:8000/v1/b1", "test_backend.py", "pages/user_feedback/v1/tests/__init__.py", "opensoft"], "setup": {"duration": 0.0003995830002168077, "outcome": "passed"}, "call": {"duration": 0.0006363750003401947, "outcome": "passed"}, "teardown": {"duration": 0.002412791999631736, "outcome": "passed"}}]}