Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
petterreinholdtsen opened this issue Apr 29, 2011 · 0 comments

Comments

@petterreinholdtsen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant