add mypy type hints to all non-test code + update mypy config #276
9 tests run, 0 passed, 0 skipped, 9 failed.
Annotations
Check failure on line 12 in tests/test_deprecation_utils.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_deprecation_utils.tests.test_deprecation_utils
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/test_deprecation_utils.py:12: in <module>
from flask_rebar.utils.deprecation import deprecated, deprecated_parameters
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 20 in tests/test_errors.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_errors.tests.test_errors
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/test_errors.py:20: in <module>
from flask_rebar import messages, validation, response, Rebar
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 19 in tests/test_rebar.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_rebar.tests.test_rebar
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/test_rebar.py:19: in <module>
from flask_rebar import messages
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 16 in tests/test_request_utils.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_request_utils.tests.test_request_utils
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/test_request_utils.py:16: in <module>
from flask_rebar import validation, response, marshal
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 21 in tests/test_validation.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_validation.tests.test_validation
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/test_validation.py:21: in <module>
from flask_rebar import compat
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 12 in tests/swagger_generation/test_generator_utils.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_generator_utils.tests.swagger_generation.test_generator_utils
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/swagger_generation/test_generator_utils.py:12: in <module>
from flask_rebar.swagger_generation.generator_utils import PathArgument
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 19 in tests/swagger_generation/test_marshmallow_to_swagger.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_marshmallow_to_swagger.tests.swagger_generation.test_marshmallow_to_swagger
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/swagger_generation/test_marshmallow_to_swagger.py:19: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import ALL_CONVERTERS
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 15 in tests/swagger_generation/test_swagger_generator.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_swagger_generator.tests.swagger_generation.test_swagger_generator
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/swagger_generation/test_swagger_generator.py:15: in <module>
from flask_rebar.rebar import Rebar
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'
Check failure on line 12 in tests/swagger_generation/test_swagger_generator_hidden_api.py
github-actions / JUnit Report python3.10 marshmallow==3.17.* flask=='2.0.*' werkzeug=='2.0.*'
test_swagger_generator_hidden_api.tests.swagger_generation.test_swagger_generator_hidden_api
collection failure
Raw output
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/swagger_generation/test_swagger_generator_hidden_api.py:12: in <module>
from flask_rebar.testing import validate_swagger
flask_rebar/__init__.py:3: in <module>
from flask_rebar.rebar import (
flask_rebar/rebar.py:52: in <module>
from flask_rebar.swagger_generation.swagger_generator_base import SwaggerGenerator
flask_rebar/swagger_generation/__init__.py:2: in <module>
from flask_rebar.swagger_generation.swagger_generator_v2 import SwaggerV2Generator
flask_rebar/swagger_generation/swagger_generator_v2.py:14: in <module>
from flask_rebar.swagger_generation.generator_utils import (
flask_rebar/swagger_generation/generator_utils.py:30: in <module>
from flask_rebar.swagger_generation.marshmallow_to_swagger import get_swagger_title
flask_rebar/swagger_generation/marshmallow_to_swagger.py:740: in <module>
class EnumConverter(FieldConverter[m.fields.Enum]):
E AttributeError: module 'marshmallow.fields' has no attribute 'Enum'