Skip to content

Commit

Permalink
avoid usage of deprecated contact.set_blocked()
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez authored and hpk42 committed Oct 23, 2020
1 parent 39a0092 commit 1cacfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ def test_system_group_msg_from_blocked_user(self, acfactory, lp):

lp.sec("ac1 blocks ac2")
contact = ac1.create_contact(ac2)
contact.set_blocked()
contact.block()
assert contact.is_blocked()
ev = ac1._evtracker.get_matching("DC_EVENT_CONTACTS_CHANGED")
assert ev.data1 == contact.id
Expand Down

0 comments on commit 1cacfb3

Please sign in to comment.