Tests fail using Pydantic v2
dotlambda opened this issue · 1 comments
dotlambda commented
- safety version: 3.0.1
- Python version: 3.11.7
- Operating System: NixOS
- Pydantic version: 2.5.2
Description
I want to run safety's testsuite. It fails with
pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
I know setup.cfg
pins Pydantic to <2.0
but it would be nice if a more recent version were supported.
What I Did
Here's the output from running pytest.
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
rootdir: /build/safety-3.0.1
collected 0 items / 12 errors
==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_cli.py ______________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/test_cli.py:15: in <module>
from safety import cli
safety/cli.py:19: in <module>
from safety import safety
safety/safety.py:25: in <module>
from safety_schemas.models import Ecosystem, FileType
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
____________________ ERROR collecting tests/test_models.py _____________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/test_models.py:6: in <module>
from safety.models import SafetyRequirement
safety/models.py:15: in <module>
from safety_schemas.models import ConfigModel
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
_________________ ERROR collecting tests/test_output_utils.py __________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/test_output_utils.py:8: in <module>
from safety.models import Package, SafetyRequirement
safety/models.py:15: in <module>
from safety_schemas.models import ConfigModel
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
____________________ ERROR collecting tests/test_safety.py _____________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/test_safety.py:25: in <module>
from safety.auth import build_client_session
safety/auth/__init__.py:1: in <module>
from .cli_utils import auth_options, build_client_session, proxy_options, \
safety/auth/cli_utils.py:6: in <module>
from .main import get_auth_info, get_host_config, get_organization, get_proxy_config, \
safety/auth/main.py:10: in <module>
from safety.auth.models import Organization
safety/auth/models.py:6: in <module>
from safety_schemas.models import Stage
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
_____________________ ERROR collecting tests/test_util.py ______________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/test_util.py:9: in <module>
from safety import util
safety/util.py:24: in <module>
from safety.models import Package, RequirementFile, is_pinned_requirement, SafetyRequirement
safety/models.py:15: in <module>
from safety_schemas.models import ConfigModel
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
_________________ ERROR collecting tests/alerts/test_utils.py __________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/alerts/test_utils.py:4: in <module>
from safety.alerts import utils
safety/alerts/__init__.py:9: in <module>
from safety.cli_util import SafetyCLILegacyGroup
safety/cli_util.py:9: in <module>
from safety.auth.constants import CLI_AUTH, MSG_NON_AUTHENTICATED
safety/auth/__init__.py:1: in <module>
from .cli_utils import auth_options, build_client_session, proxy_options, \
safety/auth/cli_utils.py:6: in <module>
from .main import get_auth_info, get_host_config, get_organization, get_proxy_config, \
safety/auth/main.py:10: in <module>
from safety.auth.models import Organization
safety/auth/models.py:6: in <module>
from safety_schemas.models import Stage
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
___________________ ERROR collecting tests/auth/test_cli.py ____________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/auth/test_cli.py:7: in <module>
from safety.cli import cli
safety/cli.py:19: in <module>
from safety import safety
safety/safety.py:25: in <module>
from safety_schemas.models import Ecosystem, FileType
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
___________________ ERROR collecting tests/auth/test_main.py ___________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/auth/test_main.py:4: in <module>
from safety.auth.constants import CLI_AUTH, CLI_AUTH_LOGOUT, CLI_CALLBACK
safety/auth/__init__.py:1: in <module>
from .cli_utils import auth_options, build_client_session, proxy_options, \
safety/auth/cli_utils.py:6: in <module>
from .main import get_auth_info, get_host_config, get_organization, get_proxy_config, \
safety/auth/main.py:10: in <module>
from safety.auth.models import Organization
safety/auth/models.py:6: in <module>
from safety_schemas.models import Stage
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
________________ ERROR collecting tests/formatters/test_json.py ________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/formatters/test_json.py:5: in <module>
from safety.formatters.json import JsonReport
safety/formatters/json.py:11: in <module>
from safety.models import SafetyEncoder
safety/models.py:15: in <module>
from safety_schemas.models import ConfigModel
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
_________________ ERROR collecting tests/scan/test_command.py __________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/scan/test_command.py:5: in <module>
from safety.cli import cli
safety/cli.py:19: in <module>
from safety import safety
safety/safety.py:25: in <module>
from safety_schemas.models import Ecosystem, FileType
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
_______________ ERROR collecting tests/scan/test_file_finder.py ________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/scan/test_file_finder.py:6: in <module>
from safety.scan.finder.file_finder import FileFinder, should_exclude
safety/scan/__init__.py:3: in <module>
from safety_schemas.models import Vulnerability, RemediationModel
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
__________________ ERROR collecting tests/scan/test_render.py __________________
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/nix/store/w4fvvhkzb0ssv0fw5j34pw09f0qw84w8-python3-3.11.7/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/nix/store/yjwcmiq2nv1a36h9g02lmj5zpyrdcwks-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/scan/test_render.py:7: in <module>
from safety.scan.render import print_announcements, print_ignore_details, render_header
safety/scan/__init__.py:3: in <module>
from safety_schemas.models import Vulnerability, RemediationModel
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/__init__.py:1: in <module>
from .base import (
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/base.py:9: in <module>
from .config_protocol import ConfigConvertible
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/models/config_protocol.py:9: in <module>
from ..config.schemas.v3_0 import main as v3_0
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:73: in <module>
class AutoIgnoreInReportDependencyVulnerabilities(SchemaModelV30):
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:81: in AutoIgnoreInReportDependencyVulnerabilities
Optional[conlist(CVSSSeverityLabels, unique_items=True)], # type: ignore
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/types.py:858: in conlist
raise PydanticUserError(
E pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` instead(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)
E
E For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs
=============================== warnings summary ===============================
../../nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:20: 12 warnings
/nix/store/9rakhnja5m202855cnpp1cfjzs5xqrix-python3.11-safety-schemas-0.0.1/lib/python3.11/site-packages/safety_schemas/config/schemas/v3_0/main.py:20: PydanticDeprecatedSince20: `pydantic.config.Extra` is deprecated, use literal values instead (e.g. `extra='allow'`). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
extra = Extra.forbid
../../nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/_internal/_config.py:271: 12 warnings
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/_internal/_config.py:271: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/
warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
../../nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/_internal/_config.py:321: 12 warnings
/nix/store/7x4przi4fv2v8z6ywkp798jknr5q18gz-python3.11-pydantic-2.5.2/lib/python3.11/site-packages/pydantic/_internal/_config.py:321: UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
warnings.warn(message, UserWarning)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_cli.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/test_models.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/test_output_utils.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/test_safety.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/test_util.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/alerts/test_utils.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/auth/test_cli.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/auth/test_main.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/formatters/test_json.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/scan/test_command.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/scan/test_file_finder.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
ERROR tests/scan/test_render.py - pydantic.errors.PydanticUserError: `unique_items` is removed, use `Set` ins...
!!!!!!!!!!!!!!!!!!! Interrupted: 12 errors during collection !!!!!!!!!!!!!!!!!!!
======================= 36 warnings, 12 errors in 5.92s ========================