Separate system accounts and household people, add generation directory and consented member location sharing
This commit is contained in:
@@ -41,6 +41,7 @@ class InventoryTests(unittest.TestCase):
|
||||
def test_people_and_all_device_types_share_references_without_granting_access(self):
|
||||
person=dict(id='e'*16,name='家庭成员',familyId=self.aid,archived=False)
|
||||
app.save_object('people',person)
|
||||
app.MEMBERS.save(self.owner,dict(personId=person['id']))
|
||||
ref='person:'+person['id'];self.assertIn(ref,{p['ref'] for p in app.INVENTORY.candidates(self.owner)})
|
||||
before=app.objects('users')
|
||||
rows=[app.save_asset(dict(self.assets[self.aid],managerRef=ref),self.owner),
|
||||
|
||||
Reference in New Issue
Block a user