Skip to content
Snippets Groups Projects
Select Git revision
  • 9e43d6404f65b7909d9171c4324413f636ddc579
  • master default protected
  • eccs-docker
  • refactor/web-statistics-removal
  • refactor/StatisticsButtonPlacement
  • feature/webdataAPIMethod
  • feature_request2
  • v2.1.0
  • v2.0.6
  • v2.0.5
  • v2.0.4
  • v2.0.3
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v1.0.2
  • v1.0.1
  • v1.0.0
18 results

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