test: accept deterministic protected reparent rejection
davoodmehraban89 committed
Aug 27, 2026 at 00:55 UTC
b3dc8b3a18934ffe63f615e4f650248be21a5f9c
1 file changed
+1
-1
backend/tests/test_models.py
+1
-1
@@ -218,7 +218,7 @@ def test_protected_year_cannot_be_reparented_through_relationship(session):
218
session.commit()
219
220
year.company = replacement
221
- with pytest.raises(ValueError, match="identity cannot be mutated"):
221
+ with pytest.raises(ValueError, match="cannot be mutated"):
222
session.commit()
223
224