Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdemuzere committed Mar 12, 2024
1 parent 36326b9 commit ce0b338
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/w2w_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ def test_argparse_shows_help():


def test_create_info_dict():
wrf_v_info = {'ADD_LCZ_INT': 30, 'NUM_LAND_CAT': 41}
args = argparse.Namespace(
lcz_file='lcz_file.tif',
wrf_file='wrf_file.nc',
io_dir='input/directory',
built_lcz=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
WRF_V_INFO={'ADD_LCZ_INT': 30, 'NUM_LAND_CAT': 41},
WRF_V_INFO=wrf_v_info,
)
info = Info.from_argparse(args)
info = Info.from_argparse(args, wrf_v_info)

# info is Dict, with 8 keys
assert len(info) == 9
Expand Down

0 comments on commit ce0b338

Please sign in to comment.