Skip to content

Claim 'address' is required in a request - while it only is if no lat/lon is set #2

@petterreinholdtsen

Description

@petterreinholdtsen

When testing a server where only the geo-location (lat/on) is proved for requests the test report this "error":

ERROR: testServiceRequests (main.TestOpen311)

Traceback (most recent call last):
File "open311-validator/test311.py", line 157, in testServiceRequests
self._testServiceRequest(sr)
File "open311-validator/test311.py", line 172, in _testServiceRequest
self.assertTrue(re.search('.+', sr['address']), 'address is required')
KeyError: 'address'

As far as I can see from the spec, the address field is only required if lat/lon is unset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions