Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasjucker committed Feb 12, 2025
1 parent 7343c21 commit cade413
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions test/pytest/test_wrap_extpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test_generate_globe_filenames():


def test_setup_runscript_with_urban_cosmo():
args = {'account': 'test_account', 'lurban': True, 'igrid_type': 2}
args = {'account': 'test_account', 'lurban': True, 'igrid_type': 2, 'enable_cdnc': False, 'enable_edgar': False}
expected_runscript = {
'account':
'test_account',
Expand All @@ -240,7 +240,7 @@ def test_setup_runscript_with_urban_cosmo():


def test_setup_runscript_without_urban_icon():
args = {'account': 'test_account', 'lurban': False, 'igrid_type': 1}
args = {'account': 'test_account', 'lurban': False, 'igrid_type': 1, 'enable_cdnc': False, 'enable_edgar': False}
expected_runscript = {
'account':
'test_account',
Expand All @@ -257,6 +257,25 @@ def test_setup_runscript_without_urban_icon():
}
assert setup_runscript(args) == expected_runscript

def test_setup_runscript_without_urban_with_edgar_and_cdnc_icon():
args = {'account': 'test_account', 'lurban': False, 'igrid_type': 1, 'enable_cdnc': True, 'enable_edgar': True}
expected_runscript = {
'account':
'test_account',
'pythonpath':
os.path.join(os.getcwd(), 'lib'),
'extpar_executables': [
'"extpar_landuse_to_buffer.exe" ', '"extpar_topo_to_buffer.exe" ',
'"extpar_cru_to_buffer.py" ', '"extpar_aot_to_buffer.exe" ',
'"extpar_flake_to_buffer.exe" ', '"extpar_soil_to_buffer.exe" ',
'"extpar_alb_to_buffer.py" ', '"extpar_ndvi_to_buffer.py" ',
'"extpar_era_to_buffer.py" ', '"extpar_emiss_to_buffer.py" ',
'"extpar_edgar_to_buffer.py" ', '"extpar_cdnc_to_buffer.py" ',
'"extpar_consistency_check.exe" '
]
}
assert setup_runscript(args) == expected_runscript


def test_compute_aster_tiles_1_1():
lonmax = 30.0
Expand Down

0 comments on commit cade413

Please sign in to comment.