Skip to content

Commit

Permalink
some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arrrlo committed Jun 13, 2019
1 parent a6ae303 commit 440087c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_fetch_resize_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ def test_init(self):
self.assertEqual(self._frs._search_result, [])
self.assertEqual(self._frs._progress, False)

"""self._frs = FetchResizeSave(self._api_key, self._api_cx, progress=True)
frs = FetchResizeSave(self._api_key, self._api_cx,
progressbar_fn=lambda x, y: None, progress=True)

self.assertEqual(self._frs._chunk_sizes, {})
self.assertEqual(self._frs._terminal_lines, {})
self.assertEqual(self._frs._download_progress, {})
self.assertEqual(self._frs._report_progress, None)"""
self.assertEqual(frs._chunk_sizes, {})
self.assertEqual(frs._terminal_lines, {})
self.assertEqual(frs._download_progress, {})
self.assertNotEqual(frs._report_progress, None)

def test_search_url(self):
self._frs.search({'num': 2})
Expand Down

0 comments on commit 440087c

Please sign in to comment.