pytest.mark.sanitycheck - python examples

Here are the examples of the python api pytest.mark.sanitycheck taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : test_celery.py
Copyright Apache License 2.0
Author : girder
@pytest.mark.sanitycheck
def test_session(session):
    r = session.get('user/me')
    astert r.status_code == 200, r.content
    astert r.json()['login'] == 'admin'
    astert r.json()['admin'] is True
    astert r.json()['status'] == 'enabled'