Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss committed Dec 5, 2024
1 parent c0d3524 commit dda121e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/app/tests/sfms/test_raster_addresser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
RDPS_MODEL_RUN_12_START = datetime(2024, 10, 10, 12, tzinfo=timezone.utc)
HOUR_OFFSET = 3
HFFMC_DATETIME = datetime(2024, 10, 10, 5, tzinfo=timezone.utc)
HFFMC_DATETIME_ISO = HFFMC_DATETIME.date().isoformat()


@pytest.fixture
Expand Down Expand Up @@ -65,4 +66,4 @@ def test_get_model_data_key_hffmc(raster_key_addresser):

def test_get_calculated_hffmc_index_key(raster_key_addresser: RasterKeyAddresser):
result = raster_key_addresser.get_calculated_hffmc_index_key(HFFMC_DATETIME)
assert result == "sfms/calculated/hourlies/2024-10-09/fine_fuel_moisture_code2024100922.tif"
assert result == f"sfms/calculated/hourlies/{HFFMC_DATETIME_ISO}/fine_fuel_moisture_code{HFFMC_DATETIME_ISO.replace('-','')}{HFFMC_DATETIME.hour:02d}.tif"

0 comments on commit dda121e

Please sign in to comment.