Skip to content

Commit

Permalink
add missing test for erddap crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Oct 8, 2024
1 parent c2f5af3 commit 35cbd87
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_generic_crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,17 @@ def test_get_ids_error(self):
self.assertRaises(requests.HTTPError):
list(crawler.get_ids())

def test__make_condition_parameters(self):
"""Check that string parameters get quotes"""
self.assertDictEqual(
crawlers.ERDDAPTableCrawler('url.json', ['id_attr'])._make_condition_parameters({
'a': 'foo',
'b': 1,
'c': True
}),
{'a': '"foo"', 'b': 1, 'c': True}
)

def test_crawl(self):
"""Test the DatasetInfo objects returned by the crawler"""
ids = [["3901480"], ["5905121"], ["5905267"]]
Expand Down

0 comments on commit 35cbd87

Please sign in to comment.