Skip to content

Commit

Permalink
Split name/address in location attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
hancush committed Mar 23, 2018
1 parent 0289ac3 commit 81ac1fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion documenters_aggregator/spiders/chi_pubhealth.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def _parse_location(self, item):
"""
return {
'url': 'https://www.cityofchicago.org/city/en/depts/cdph.html',
'name': '2nd Floor Board Room, DePaul Center, 333 S. State Street, Chicago, IL',
'name': '2nd Floor Board Room, DePaul Center',
'address': '333 S. State Street, Chicago, IL',
'coordinates': {
'latitude': None,
'longitude': None,
Expand Down
3 changes: 2 additions & 1 deletion tests/test_chi_pubhealth.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def test_status(item):
def test_location(item):
assert item['location'] == {
'url': 'https://www.cityofchicago.org/city/en/depts/cdph.html',
'name': '2nd Floor Board Room, DePaul Center, 333 S. State Street, Chicago, IL',
'name': '2nd Floor Board Room, DePaul Center',
'address': '333 S. State Street, Chicago, IL',
'coordinates': {
'latitude': None,
'longitude': None,
Expand Down

0 comments on commit 81ac1fe

Please sign in to comment.