Skip to content
Snippets Groups Projects
Select Git revision
  • f60dcd17a096a1c266f6730d5ca3ceb2512aae1f
  • develop default protected
  • master protected
  • feature/POL1-813-error-report-sensu-check
  • 0.21
  • 0.20
  • 0.19
  • 0.18
  • 0.17
  • 0.16
  • 0.15
  • 0.14
  • 0.13
  • 0.12
  • 0.11
  • 0.10
  • 0.9
  • 0.8
  • 0.7
  • 0.6
  • 0.5
  • 0.4
  • 0.3
  • 0.2
24 results

api.py

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