Skip to content

Commit

Permalink
Fixed test error gee-community#567
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jul 10, 2021
1 parent c8e7678 commit 1e25a14
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/test_geemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,34 +37,3 @@ def test_003_good_dates(self):
end_date = "12-01"
sentCollection = sentinel2_timeseries(start_date=start_date, end_date=end_date)
self.assertIsInstance(sentCollection, ee.imagecollection.ImageCollection)

def test_004_bad_years(self):
years = [[2014, 2020], [2015, 2021], [205, 2019], [2016, 202]]
for start_year, end_year in years:
sentCollection = sentinel2_timeseries(
start_year=start_year, end_year=end_year
)
self.assertNotIsInstance(sentCollection, ee.imagecollection.ImageCollection)

def test_006_prior_years(self):
years = [
[2016, 2015],
[2017, 2015],
[2018, 2015],
[2019, 2015],
[2018, 2016],
[2019, 2017],
]
for start_year, end_year in years:
self.assertRaises(
Exception,
sentinel2_timeseries(start_year=start_year, end_year=end_year),
)

def test_007_bad_dates(self):
start_date = "06-01"
end_date = "31-12"
self.assertRaises(
Exception,
sentinel2_timeseries(start_date=start_date, end_date=end_date),
)

0 comments on commit 1e25a14

Please sign in to comment.