Skip to content

Commit

Permalink
Merge pull request #215 from developmentseed/bug/191-bands
Browse files Browse the repository at this point in the history
Bug/191 bands
  • Loading branch information
drewbo authored Jan 3, 2017
2 parents 1922979 + 544e493 commit 39b6e2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion landsat/landsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def args_options():
help="Provide Full sceneID, e.g. LC81660392014196LGN00")

parser_download.add_argument('-b', '--bands', help='If you specify bands, landsat-util will try to download '
'the band from S3. If the band does not exist, an error is returned', default='')
'the band from S3. If the band does not exist, an error is returned', default=None)
parser_download.add_argument('-d', '--dest', help='Destination path')
parser_download.add_argument('-p', '--process', help='Process the image after download', action='store_true')
parser_download.add_argument('--pansharpen', action='store_true',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_remote_file_size(self):
url = self.d.google_storage_url(self.d.scene_interpreter(self.scene))
size = self.d.get_remote_file_size(url)

self.assertEqual(self.scene_size, size)
self.assertAlmostEqual(self.scene_size, size)

def test_google_storage_url(self):
sat = self.d.scene_interpreter(self.scene)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_landsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_download_correct_zip(self, mock_downloader):
args = ['download', 'LC80010092015051LGN00', '-d', self.mock_path]
output = landsat.main(self.parser.parse_args(args))
mock_downloader.assert_called_with(download_dir=self.mock_path, usgs_pass=None, usgs_user=None)
mock_downloader.return_value.download.assert_called_with(['LC80010092015051LGN00'], [])
mock_downloader.return_value.download.assert_called_with(['LC80010092015051LGN00'], None)
self.assertEquals(output, ['Download Completed', 0])

@mock.patch('landsat.landsat.process_image')
Expand Down

0 comments on commit 39b6e2e

Please sign in to comment.