Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed Mar 12, 2023
1 parent e9a3d62 commit 5c8e152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def test_init_dataset_today(test_app: Tuple[Mock, DataManager, Path]):
Args:
test_app (Tuple[Mock, DataManager, Path]): Test application
"""
mock = test_app
mock, _, _ = test_app
args = split('e4edm init_dataset --date today --project TEST --location Location')
with patch('sys.argv', args):
main()
mock.assert_called_once_with(
mock.initialize_dataset.assert_called_once_with(
date=dt.date.today(),
project='TEST',
location='Location',
Expand Down

0 comments on commit 5c8e152

Please sign in to comment.