Пример #1
0
 def test_remove_user_by_id(self):
     UsersDb.remove_user_by_id(TEST_USER_ID)
     snap = firestore_client().document(u'users', TEST_USER_ID).get()
     assert snap.exists == False
     col = firestore_client().collection(u'users', TEST_USER_ID, u'records')
     contains_sth = False
     for ref in col.list_documents():
         contains_sth = True
         break
     assert contains_sth == False
Пример #2
0
 def tearDown(self):
     UsersDb.remove_user_by_id(TEST_USER_ID)
     UsersDb.remove_user_by_id(TEST_USER_ID+'NEW')