From 37de486a2b5cf46095b32f49c28f1d6506fd0eed Mon Sep 17 00:00:00 2001 From: Nathan Hui Date: Sat, 25 Mar 2023 17:38:56 -0700 Subject: [PATCH] Changed start time to local system based --- tests/test_cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 779c63e..616646e 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -134,8 +134,11 @@ def test_add_files_timezone(single_mission: Tuple[Mock, DataManager, Path], """ mock, _, _ = single_mission data_dir, n_files, _ = test_data + local_tz = dt.datetime.now().astimezone().tzinfo + sleep(1) + start_time = dt.datetime.now(tz=local_tz) - args = split(f'e4edm add --start 2023-03-25T17:18-07:00 {data_dir.as_posix()}/*') + args = split(f'e4edm add --start {start_time.isoformat()} {data_dir.as_posix()}/*') with patch('sys.argv', args): main() expected_files = [data_dir.joinpath(f'{i:04d}.bin') for i in range(n_files)]