Skip to content

Commit

Permalink
actually fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Feb 7, 2024
1 parent aac25a6 commit 49bdb24
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions forcingprocessor/tests/test_forcingprocessor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pytest, os
import pytest, os, json
import pandas as pd
from pathlib import Path
from datetime import datetime
Expand Down Expand Up @@ -64,7 +64,12 @@ def test_generate_weights(get_paths):
catchment_list = list(weights_df.divide_id.unique())
del weights_df

get_weight_json(catchment_list,0)
weights = get_weight_json(catchment_list,0)

data = json.dumps(weights)
with open(pytest.full_weight,'w') as fp:
fp.write(data)

assert pytest.full_weight.exists()

def test_processor(get_time, get_paths):
Expand Down

0 comments on commit 49bdb24

Please sign in to comment.