Skip to content
Snippets Groups Projects
Select Git revision
  • 52ae38fa2d84814c62edfc4c272e7d767d2e1464
  • develop default
  • master protected
  • feature/frontend-tests
  • 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
  • 0.79
24 results

test_funding_source.py

Blame
  • test_funding_source.py 418 B
    import json
    import jsonschema
    from compendium_v2.routes.funding import FUNDING_RESPONSE_SCHEMA
    
    
    def test_funding_source_response(client, test_funding_source_data):
        rv = client.get(
            '/api/funding/',
            headers={'Accept': ['application/json']})
        assert rv.status_code == 200
        result = json.loads(rv.data.decode('utf-8'))
        jsonschema.validate(result, FUNDING_RESPONSE_SCHEMA)
        assert result