Skip to content
Snippets Groups Projects
Select Git revision
  • 22aa6f7bcd2a1a3f4180bb0ddc587749737fca91
  • develop default
  • master protected
  • async-provision
  • DBOARD3-1252/inventory-api
  • 0.90
  • 0.89
  • 0.88
  • 0.87
  • 0.86
  • 0.85
  • 0.84
  • 0.83
  • 0.82
  • 0.81
  • 0.80
  • 0.79
  • 0.78
  • 0.77
  • 0.76
  • 0.75
  • 0.74
  • 0.73
  • 0.72
  • 0.71
25 results

app.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