Skip to content

Commit

Permalink
chore: bump to 0.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 8, 2024
1 parent 6497764 commit 02fdae8
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 96 deletions.
2 changes: 1 addition & 1 deletion doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

[0.2.11] - Unreleased
[0.2.11] - 2024-12-08
---------------------
Added
^^^^^
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "scim2-models"
version = "0.2.10"
version = "0.2.11"
description = "SCIM2 models serialization and validation with pydantic"
authors = [{name="Yaal Coop", email="[email protected]"}]
license = {file = "LICENSE"}
Expand Down
7 changes: 6 additions & 1 deletion tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,9 @@ def test_get_attribute(load_sample):
payload = load_sample("rfc7643-8.7.1-schema-user.json")
schema = Schema.model_validate(payload)
assert schema.get_attribute("invalid") is None
assert isinstance(schema.get_attribute("userName"), Attribute)

assert schema.attributes[0].name == "userName"
assert schema.attributes[0].mutability == Mutability.read_write
schema.get_attribute("userName").mutability = Mutability.read_only

assert schema.attributes[0].mutability == Mutability.read_only
Loading

0 comments on commit 02fdae8

Please sign in to comment.