File tree Expand file tree Collapse file tree 4 files changed +101
-96
lines changed
Expand file tree Collapse file tree 4 files changed +101
-96
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4- [0.2.11] - Unreleased
4+ [0.2.11] - 2024-12-08
55---------------------
66Added
77^^^^^
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " scim2-models"
7- version = " 0.2.10 "
7+ version = " 0.2.11 "
88description = " SCIM2 models serialization and validation with pydantic"
99authors = [{name =" Yaal Coop" , email =" contact@yaal.coop" }]
1010license = {file = " LICENSE" }
Original file line number Diff line number Diff line change @@ -92,4 +92,9 @@ def test_get_attribute(load_sample):
9292 payload = load_sample ("rfc7643-8.7.1-schema-user.json" )
9393 schema = Schema .model_validate (payload )
9494 assert schema .get_attribute ("invalid" ) is None
95- assert isinstance (schema .get_attribute ("userName" ), Attribute )
95+
96+ assert schema .attributes [0 ].name == "userName"
97+ assert schema .attributes [0 ].mutability == Mutability .read_write
98+ schema .get_attribute ("userName" ).mutability = Mutability .read_only
99+
100+ assert schema .attributes [0 ].mutability == Mutability .read_only
You can’t perform that action at this time.
0 commit comments