Beispiel #1
0
def test_admin_api_admin_delete(session,admin1_logged):
    '''Admin API delete call by Admin'''   
    #successful admin deletion
    admin1 = Admin.query.filter_by(email='*****@*****.**').first()  
    admin2 = Admin.query.filter_by(email='*****@*****.**').first()  
    check_api_delete(url_for('admin.admin_api',id=admin2.id))
    check_api_delete_error(url_for('admin.admin_api',id=admin1.id))
Beispiel #2
0
def test_admin_api_admin_delete(session, admin1_logged):
    '''Admin API delete call by Admin'''
    #successful admin deletion
    admin1 = Admin.query.filter_by(email='*****@*****.**').first()
    admin2 = Admin.query.filter_by(email='*****@*****.**').first()
    check_api_delete(url_for('admin.admin_api', id=admin2.id))
    check_api_delete_error(url_for('admin.admin_api', id=admin1.id))
Beispiel #3
0
def test_aclient_api_admin_delete(session,admin1_logged):
    '''Client API delete call by Admin'''   
    #successful client deletion

    client1 = Client.query.filter_by(email='*****@*****.**').first()
    client2 = Client.query.filter_by(email='*****@*****.**').first() 
    check_api_delete(url_for('admin.client_api',id=client1.id))
    check_api_delete_error(url_for('admin.client_api',id=client2.id))
Beispiel #4
0
def test_aclient_api_admin_delete(session, admin1_logged):
    '''Client API delete call by Admin'''
    #successful client deletion

    client1 = Client.query.filter_by(email='*****@*****.**').first()
    client2 = Client.query.filter_by(email='*****@*****.**').first()
    check_api_delete(url_for('admin.client_api', id=client1.id))
    check_api_delete_error(url_for('admin.client_api', id=client2.id))