You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
craft-application currently breaks tests if updated, so it is pinned at 4.4.0. We should investigate upgrading it
Why it needs to get done
Below is done with craft-application==4.8.2
def test_project_platform_unknown_name():
"""Raise an error if an empty platform is not a valid architecture."""
with pytest.raises(CraftValidationError) as raised:
> snapcraft.models.project.SnapcraftBuildPlanner.model_validate(
{
"name": "test-snap",
"base": "test-base",
"build-base": "test-build-base",
"platforms": {"unknown": None},
"project_type": "test-type",
}
)
E pydantic_core._pydantic_core.ValidationError: 2 validation errors for SnapcraftBuildPlanner
E platforms.unknown.build-on
E Value error, 'unknown' is not a valid DebianArchitecture [type=value_error, input_value=['unknown'], input_type=list]
E For further information visit https://errors.pydantic.dev/2.8/v/value_error
E platforms.unknown.build-for
E Value error, 'unknown' is not a valid DebianArchitecture [type=value_error, input_value=['unknown'], input_type=list]
E For further information visit https://errors.pydantic.dev/2.8/v/value_error
tests/unit/models/test_projects.py:2565: ValidationError
The text was updated successfully, but these errors were encountered:
What needs to get done
craft-application currently breaks tests if updated, so it is pinned at 4.4.0. We should investigate upgrading it
Why it needs to get done
Below is done with
craft-application==4.8.2
The text was updated successfully, but these errors were encountered: