mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Add unit test for set profile following (#1520)
This commit is contained in:
parent
2a55b44b97
commit
e1a9674200
1 changed files with 13 additions and 0 deletions
|
|
@ -207,3 +207,16 @@ def test_get_contact_profile(squeak_db, address, contact_profile):
|
|||
|
||||
assert retrieved_profile.profile_name == contact_profile.profile_name
|
||||
assert retrieved_profile.address == contact_profile.address
|
||||
|
||||
|
||||
def test_set_profile_following(squeak_db, address, contact_profile):
|
||||
profile_id = squeak_db.insert_profile(contact_profile)
|
||||
squeak_db.set_profile_following(profile_id, True)
|
||||
retrieved_profile = squeak_db.get_profile(profile_id)
|
||||
|
||||
assert retrieved_profile.following
|
||||
|
||||
squeak_db.set_profile_following(profile_id, False)
|
||||
retrieved_profile = squeak_db.get_profile(profile_id)
|
||||
|
||||
assert not retrieved_profile.following
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue