Skip to content
Snippets Groups Projects
Select Git revision
  • 7baef30a867d40e6dbc9bdbfe5c8e674199e88fb
  • develop default
  • master protected
  • feature/frontend-tests
  • 0.106
  • 0.105
  • 0.104
  • 0.103
  • 0.102
  • 0.101
  • 0.100
  • 0.99
  • 0.98
  • 0.97
  • 0.96
  • 0.95
  • 0.94
  • 0.93
  • 0.92
  • 0.91
  • 0.90
  • 0.89
  • 0.88
  • 0.87
24 results

test_staff.py

Blame
  • test_staff.py 392 B
    import json
    import jsonschema
    from compendium_v2.routes.staff import STAFF_RESPONSE_SCHEMA
    
    
    def test_staff_response(client, test_staff_data):
        rv = client.get(
            '/api/staff/',
            headers={'Accept': ['application/json']})
        assert rv.status_code == 200
        result = json.loads(rv.data.decode('utf-8'))
        jsonschema.validate(result, STAFF_RESPONSE_SCHEMA)
        assert result