Skip to content
Snippets Groups Projects
Verified Commit 73111267 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add test for profile

parent f641de06
No related branches found
No related tags found
No related merge requests found
Pipeline #56668 canceled
......@@ -403,3 +403,17 @@ def test_alias_room_id_using_group(matrix_bot_user):
assert g.matrix_room_id == room.room_id
assert g.matrix_alias == room.alias
def test_matrix_profile():
p1 = Person.objects.create(first_name="Test", last_name="Person")
with pytest.raises(ValueError):
profile = MatrixProfile.from_person(p1)
p1.user = User.objects.create(username="test")
p1.save()
profile = MatrixProfile.from_person(p1)
assert profile == MatrixProfile.from_person(p1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment