Skip to content

Commit

Permalink
ci: Fixes failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed Nov 11, 2024
1 parent 200e643 commit 3810a02
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 @@ -296,6 +296,7 @@ def test_status(test_app: Tuple[Mock, DataManager, Path]):
mock, _,_ = test_app

args = split('e4edm status')
mock.status.return_value = 'status_msg'
with patch('sys.argv', args):
main()
mock.status.assert_called_once_with()
Expand All @@ -308,11 +309,10 @@ def test_list(single_mission: Tuple[Mock, DataManager, Path]):
"""
mock, app, _ = single_mission

mock.list_datasets.return_value = app.list_datasets()
mock.datasets = app.datasets
args = split('e4edm list')
with patch('sys.argv', args):
main()
mock.list_datasets.assert_called_once_with()

def test_inactive_commands(test_app):
"""Tests that inactive environment doesn't break --help
Expand Down

0 comments on commit 3810a02

Please sign in to comment.