Merge remote-tracking branch 'origin/feature/909-define-basic-trait-type-using-dataclasses' into feature/911-new-traits-based-integrator

This commit is contained in:
Ondřej Samohel 2025-04-07 14:10:54 +02:00
commit d77eab4ae7
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
39 changed files with 1591 additions and 76 deletions

View file

@ -122,7 +122,7 @@ def test_file_locations_validation() -> None:
with pytest.raises(TraitValidationError):
file_locations_trait.validate_trait(representation)
# invalid representation with mutliple file locations but
# invalid representation with multiple file locations but
# unrelated to either Sequence or Bundle traits
representation = Representation(name="test", traits=[
FileLocations(file_paths=[

View file

@ -21,18 +21,18 @@ REPRESENTATION_DATA: dict = {
"file_path": Path("/path/to/file"),
"file_size": 1024,
"file_hash": None,
"persistent": True,
# "persistent": True,
},
Image.id: {"persistent": True},
Image.id: {},
PixelBased.id: {
"display_window_width": 1920,
"display_window_height": 1080,
"pixel_aspect_ratio": 1.0,
"persistent": True,
# "persistent": True,
},
Planar.id: {
"planar_configuration": "RGB",
"persistent": True,
# "persistent": True,
},
}