Skip to content
Snippets Groups Projects
Select Git revision
  • 0f2283b9a2f863971f74f3c40912d3e1d7ca748d
  • 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

dataconversion.tsx

Blame
  • test_charging_structure.py 450 B
    import json
    import jsonschema
    from compendium_v2.routes.charging import CHARGING_STRUCTURE_RESPONSE_SCHEMA
    
    
    def test_charging_structure_response(client, test_charging_structure_data):
        rv = client.get(
            '/api/charging/',
            headers={'Accept': ['application/json']})
        assert rv.status_code == 200
        result = json.loads(rv.data.decode('utf-8'))
        jsonschema.validate(result, CHARGING_STRUCTURE_RESPONSE_SCHEMA)
        assert result