Skip to content
Snippets Groups Projects
Select Git revision
  • 0494ec7f868b10f485afdfdbe7a3872433cbf8f3
  • develop default
  • master protected
  • feature/frontend-tests
  • 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
  • 0.86
  • 0.85
  • 0.84
  • 0.83
  • 0.82
  • 0.81
  • 0.80
24 results

test_ec_projects.py

Blame
  • Bjarke Madsen's avatar
    Bjarke Madsen authored
    7f7b4ca0
    History
    test_ec_projects.py 425 B
    import json
    import jsonschema
    from compendium_v2.routes.ec_projects import EC_PROJECTS_RESPONSE_SCHEMA
    
    
    def test_ec_project_response(client, test_ec_project_data):
        rv = client.get(
            '/api/ec-project/',
            headers={'Accept': ['application/json']})
        assert rv.status_code == 200
        result = json.loads(rv.data.decode('utf-8'))
        jsonschema.validate(result, EC_PROJECTS_RESPONSE_SCHEMA)
        assert result