Skip to content

Commit

Permalink
test instances for a company list
Browse files Browse the repository at this point in the history
  • Loading branch information
eskerda committed Nov 25, 2023
1 parent e726d26 commit aef4e79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ def test_fields(self, instance, i_data, cls, mod):
assert -90 <= instance.meta['latitude'] <= 90
assert -180 <= instance.meta['longitude'] <= 180

assert 'company' in instance.meta

company = instance.meta['company']
err = "[company] expected list, found '%s' for %s" % (
type(company).__name__, company
)
assert isinstance(instance.meta['company'], list), err

def test_uses_scraper(self, instance, i_data, cls, mod):
scraper = pybikes.PyBikesScraper()
request = Mock
Expand Down

0 comments on commit aef4e79

Please sign in to comment.