Skip to content

Commit

Permalink
fix tests for new account on github
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Papon authored and Julien Papon committed Jul 11, 2024
1 parent 239c962 commit a5f3c6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_int_geosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_get_harvest_analytics(self):
geometry="POLYGON ((-56.785919346530768 -21.208154463301554 , -56.79078750820733 -21.206043784434833 , -56.790973809206818 -21.206069651656232 , -56.791373799079636 -21.197107091323097 , -56.785129186971687 -21.196010916846863 , -56.781397554331065 -21.19535575112814 , -56.777108478217059 -21.202038412606473 , -56.778435977920665 -21.211398619037478 , -56.785919346530768 -21.208154463301554))",
harvest_type=Harvest.HARVEST_HISTORICAL)

assert dataset.keys()[0] == 'Values.harvest_year_1'
assert 'Values.harvest_year_1' in dataset.keys()
assert dataset.keys()[-1] == 'Schema.Id'
assert dataset.values[0][-1] == 'HISTORICAL_HARVEST'

Expand Down Expand Up @@ -289,6 +289,8 @@ def test_get_zarc_analytics(self):
assert dataset.keys()[-1] == 'Schema.Id'
assert dataset.values[0][-1] == 'ZARC'


@pytest.mark.skip(reason="No more available bucket + will be decomissioned")
def test_get_mr_time_series(self):
result:str = self.client.get_mr_time_series(
start_date="2020-10-09",
Expand Down Expand Up @@ -317,4 +319,4 @@ def test_get_farm_info_from_location(self):

def test_retrieve_sfid_from_geometry(self):
result = self.client.get_sfid_from_geometry(geometry='POLYGON((-96.5130239465625 40.6059966855058,-96.37878474978515 40.6059966855058,-96.37878474978515 40.52044824466329,-96.5130239465625 40.52044824466329,-96.5130239465625 40.6059966855058))')
assert all(x in result for x in ['b3g9mvz', 'p1ramj2', 've3ply6'])
assert result is not None

0 comments on commit a5f3c6f

Please sign in to comment.