def test_delete_document(db_conn, vases_table): tablename = 'vases' documents = create_test_data_set(db_conn, vases_table) assert len(documents) == 3 util.delete_document(tablename, documents[0]['id'], db_conn) params = {} documents = list(util.list_documents(tablename, params, db_conn)) assert len(documents) == 2
def delete_follow(doc_id, db_conn): """ Remove a follow from the database. """ schema = follow_schema tablename = schema['tablename'] return delete_document(tablename, doc_id, db_conn)