Skip to content
Snippets Groups Projects
Select Git revision
  • 99dd0408d7b61a40b355f02f4fa67bc26e2bb19d
  • develop default
  • master protected
  • inventoryProvider-functional
  • inventoryProvider-morework2
  • circuit-service-details-fix
  • lookup-SPECTRUM-SCHF-ports
  • inventoryProvider-1267-cleanup
  • inventoryProvider-moreWork
  • feature/DBOARD3-958
  • release/0.110
  • fix-uuid-validation-error
  • docker-poc
  • 0.154
  • 0.153
  • 0.152
  • 0.151
  • 0.150
  • 0.149
  • 0.148
  • 0.147
  • 0.146
  • 0.145
  • 0.144
  • 0.143
  • 0.142
  • 0.141
  • 0.140
  • 0.139
  • 0.138
  • 0.137
  • 0.136
  • 0.135
33 results

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