Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Oct 29, 2024
1 parent e228712 commit 4381355
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions forcingprocessor/tests/test_forcingprocessor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
from pathlib import Path
from datetime import datetime
from datetime import timezone
from datetime import datetime, timedelta, timezone
from forcingprocessor.processor import prep_ngen_data
from forcingprocessor.nwm_filenames_generator import generate_nwmfiles
import pytest
Expand All @@ -10,6 +9,8 @@
date = datetime.now(timezone.utc)
date = date.strftime('%Y%m%d')
hourminute = '0000'
yesterday = datetime.now(timezone.utc) - timedelta(hours=24)
yesterday = yesterday.strftime('%Y%m%d')
test_dir = Path(__file__).parent
data_dir = (test_dir/'data').resolve()
forcings_dir = (data_dir/'forcings').resolve()
Expand Down Expand Up @@ -172,8 +173,8 @@ def test_noaa_nwm_pds_https_analysis_assim():
os.remove(assert_file)

def test_noaa_nwm_pds_https_analysis_assim_extend():
nwmurl_conf['start_date'] = date + hourminute
nwmurl_conf['end_date'] = date + hourminute
nwmurl_conf['start_date'] = yesterday + hourminute
nwmurl_conf['end_date'] = yesterday + hourminute
nwmurl_conf["urlbaseinput"] = 7
nwmurl_conf["runinput"] = 6
nwmurl_conf["fcst_cycle"] = [16]
Expand Down

0 comments on commit 4381355

Please sign in to comment.