Skip to content

Commit 02fdae8

Browse files
committed
chore: bump to 0.2.11
1 parent 6497764 commit 02fdae8

File tree

4 files changed

+101
-96
lines changed

4 files changed

+101
-96
lines changed

doc/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
[0.2.11] - Unreleased
4+
[0.2.11] - 2024-12-08
55
---------------------
66
Added
77
^^^^^

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "scim2-models"
7-
version = "0.2.10"
7+
version = "0.2.11"
88
description = "SCIM2 models serialization and validation with pydantic"
99
authors = [{name="Yaal Coop", email="[email protected]"}]
1010
license = {file = "LICENSE"}

tests/test_schema.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)