Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into reference-returns-list
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Burgess committed Dec 5, 2019
2 parents d5583b8 + 37610e2 commit d5f171f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/endpoints/test_geographies_real.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ def test_search(self):

assert "Liverpool [GB]" in names

def test_search_empty_args(self):
Geographies().search()

def test_search_to_df(self):
geographies = (
Geographies().search(term=["Liverpool", "Southampton"]).to_df()
Expand Down
2 changes: 1 addition & 1 deletion vortexasdk/endpoints/geographies.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self):
Reference.__init__(self, GEOGRAPHIES_REFERENCE)
Search.__init__(self, GEOGRAPHIES_REFERENCE)

def search(self, term: Union[str, List[str]]) -> GeographyResult:
def search(self, term: Union[str, List[str]] = None) -> GeographyResult:
"""
Find all geographies matching given search terms.
Expand Down

0 comments on commit d5f171f

Please sign in to comment.