Fix prototype state user isolation
This commit is contained in:
parent
19c85db89a
commit
fabedb105b
2 changed files with 7 additions and 2 deletions
|
|
@ -21,9 +21,14 @@ async def test_get_or_create_user_is_stable_per_surface_identity():
|
|||
|
||||
assert first.user_id == "usr-matrix-@alice:example.org"
|
||||
assert first.is_new is True
|
||||
|
||||
first.display_name = "Mallory"
|
||||
first.is_new = False
|
||||
|
||||
assert second.user_id == first.user_id
|
||||
assert second.is_new is False
|
||||
assert second.display_name == "Alice"
|
||||
assert store._users["matrix:@alice:example.org"].display_name == "Alice"
|
||||
assert store._users["matrix:@alice:example.org"].is_new is False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue