diff --git a/pls_cli/please.py b/pls_cli/please.py index c6ba287..5a83464 100644 --- a/pls_cli/please.py +++ b/pls_cli/please.py @@ -46,7 +46,7 @@ background_bar_style = os.getenv('PLS_BACKGROUND_BAR_STYLE', 'bar.back') complete_bar_style = os.getenv('PLS_COMPLETE_BAR_STYLE', 'bar.complete') -finished_bar_style = os.getenv('PLS_FINISHED_BAR_STYLE', 'bar.done') +finished_bar_style = os.getenv('PLS_FINISHED_BAR_STYLE', 'bar.finished') def get_terminal_full_width() -> int: diff --git a/tests/test_pls_cli.py b/tests/test_pls_cli.py index 8fb36a6..8f44b70 100644 --- a/tests/test_pls_cli.py +++ b/tests/test_pls_cli.py @@ -89,6 +89,18 @@ def test_config_ok_no_tasks_pending( assert 'Looking good, no pending tasks ✨ 🍰 ✨' in result.stdout +@patch('pls_cli.utils.settings.Settings.exists_settings', return_value=True) +@patch( + 'pls_cli.utils.settings.Settings.get_tasks', + return_value=[{'name': 'Task 1', 'done': True}], +) +def test_config_ok_no_tasks_pending_with_progress( + mock_get_tasks, mock_exists_settings +): + result = runner.invoke(app) + assert result.exit_code == 0 + + @patch( 'pls_cli.utils.settings.Settings.get_settings', return_value={