Release 0.1.45: member phone locations and people-first family navigation
This commit is contained in:
@@ -66,6 +66,17 @@ class JournalTests(unittest.TestCase):
|
||||
with self.assertRaises(app.Problem):
|
||||
app.JOURNAL.save(self.actor, self.note(participantIds=[foreign['personId']]))
|
||||
|
||||
def test_real_person_history_includes_linked_account_notes_without_exposing_private_notes(self):
|
||||
member = app.MEMBERS.save(self.owner, dict(name='有账号的家人'))
|
||||
self.actor = app.ACCOUNTS.save(dict(self.actor, personId=member['personId']), self.root)
|
||||
private_id = self.saved()
|
||||
public_id = self.saved(visibility='household')
|
||||
query = dict(mode='person', person=member['personId'])
|
||||
self.assertEqual({e['id'] for e in app.JOURNAL.snapshot(self.actor, query)['items']}, {private_id, public_id})
|
||||
self.assertEqual([e['id'] for e in app.JOURNAL.snapshot(self.root, query)['items']], [public_id])
|
||||
self.assertEqual(app.JOURNAL.snapshot(self.other, query)['items'], [])
|
||||
self.assertEqual(app.JOURNAL.snapshot(self.actor, dict(mode='person'))['items'], [])
|
||||
|
||||
def test_shared_feed_history_search_and_date_filters_reference_the_same_record(self):
|
||||
key = self.saved(visibility='household')
|
||||
for mode in ('feed','person'):
|
||||
|
||||
Reference in New Issue
Block a user