Skip to content

Commit

Permalink
update provisional tests to point to 2024 provisional data
Browse files Browse the repository at this point in the history
  • Loading branch information
bhass-neon committed Feb 12, 2025
1 parent 6c14fd7 commit 0c52e42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_aop_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_all_provisional_no_data_available_message(self):
This has already run through the check that any data is available (eg. there is data at that site for the year provided)
"""
with self.assertLogs(level='INFO') as cm:
by_file_aop(dpid="DP3.30015.001", site="SCBI", year=2023)
by_file_aop(dpid="DP3.30015.001", site="WLOU", year=2024)
self.assertIn(
'INFO:root:No data files found. Available data may all be provisional. To download provisional data, use input parameter include_provisional=True.', cm.output)

Expand All @@ -165,8 +165,8 @@ def test_provisional_included_and_data_available_message(self, input_mock):
This has already run through the check that any data is available (eg. there is data at that site for the year provided)
"""
with self.assertLogs(level='INFO') as cm:
by_file_aop(dpid="DP3.30015.001", site="SCBI",
year=2023, include_provisional=True)
by_file_aop(dpid="DP3.30015.001", site="WLOU",
year=2024, include_provisional=True)
self.assertIn(
'INFO:root:Provisional data are included. To exclude provisional data, use input parameter include_provisional=False.', cm.output)

Expand Down Expand Up @@ -290,7 +290,7 @@ def test_all_provisional_no_data_available_message(self):
This has already run through the check that any data is available (eg. there is data at that site for the year provided)
"""
with self.assertLogs(level='INFO') as cm:
by_tile_aop(dpid=self.dpid, site=self.site, year=2023,
by_tile_aop(dpid=self.dpid, site='WLOU', year=2024,
easting=self.easting, northing=self.northing)
self.assertIn(
'INFO:root:No data files found. Available data may all be provisional. To download provisional data, use input parameter include_provisional=True.', cm.output)
Expand Down

0 comments on commit 0c52e42

Please sign in to comment.