Skip to content

Commit

Permalink
Add New_Homes test for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
EricNeville committed Apr 10, 2021
1 parent 7154a04 commit d97585d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_daft_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ def test_studios_to_rent(self):
self.assertTrue(len(listings) > 0)
self.assertTrue(listings[0].bedrooms == '1 bed')

def test_new_homes(self):
daft = Daft()
daft.set_search_type(SearchType.NEW_HOMES)
daft.set_location(Location.DUBLIN)
listings = daft.search(max_pages=1)
self.assertTrue(len(listings) > 0)

def test_distance(self):
daft = Daft()
daft.set_location("Dublin City")
Expand Down

0 comments on commit d97585d

Please sign in to comment.