mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
pull/checkout: fix empty output if no state gets changed (#3520)
This commit is contained in:
@@ -31,7 +31,7 @@ def log_summary(stats):
|
||||
for state in states
|
||||
if stats.get(state)
|
||||
)
|
||||
logger.info(_human_join(summary))
|
||||
logger.info(_human_join(summary) or "No changes.")
|
||||
|
||||
|
||||
def log_changes(stats):
|
||||
|
||||
@@ -47,7 +47,7 @@ def test_log_summary(caplog):
|
||||
del stats["modified"]
|
||||
_assert_output(stats, "3 added")
|
||||
|
||||
_assert_output({}, "")
|
||||
_assert_output({}, "No changes.")
|
||||
|
||||
|
||||
def test_log_changes(caplog):
|
||||
|
||||
Reference in New Issue
Block a user