Skip to content

Commit

Permalink
Update pytest to test string in list
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterKolczynski-NOAA committed Jul 25, 2024
1 parent 92b525c commit c68d7dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
export SOME_LIST2="0.2,3.5,-9999."
export SOME_LIST3="20221225, 202212251845"
export SOME_LIST4="YES, .false., .T."
export SOME_LIST5="0.2, 15, 20221225, NO"
export SOME_LIST5="0.2, test_str, 15, 20221225, NO"
"""

file1 = """#!/bin/bash
Expand Down Expand Up @@ -70,7 +70,7 @@
'SOME_LIST2': [0.2, 3.5, -9999.],
'SOME_LIST3': [datetime(2022, 12, 25, 0, 0, 0), datetime(2022, 12, 25, 18, 45, 0)],
'SOME_LIST4': [True, False, True],
'SOME_LIST5': [0.2, 15, datetime(2022, 12, 25, 0, 0, 0), False],
'SOME_LIST5': [0.2, 'test_str', 15, datetime(2022, 12, 25, 0, 0, 0), False],
}

file0_dict_set_envvar = file0_dict.copy()
Expand Down Expand Up @@ -122,7 +122,7 @@
('0.2,3.5,-9999.', [0.2, 3.5, -9999.]),
('20221215,20221215T1830Z', [datetime(2022, 12, 15, 0, 0, 0), datetime(2022, 12, 15, 18, 30, 0)]),
('YES, .false., .T.', [True, False, True]),
('0.2, 15, 20221225, NO', [0.2, 15, datetime(2022, 12, 25, 0, 0, 0), False]),
('0.2, test_str, 15, 20221225, NO', [0.2, 'test_str', 15, datetime(2022, 12, 25, 0, 0, 0), False]),
]


Expand Down

0 comments on commit c68d7dc

Please sign in to comment.