2018-07-11 08:50:42 -04:00
|
|
|
"""Test clean"""
|
|
|
|
|
|
|
|
|
2020-11-17 15:38:31 -05:00
|
|
|
def test_clean_command(runner, yadm_cmd):
|
2018-07-11 08:50:42 -04:00
|
|
|
"""Run with clean command"""
|
2023-07-10 15:43:17 -04:00
|
|
|
run = runner(command=yadm_cmd("clean"))
|
2018-07-11 08:50:42 -04:00
|
|
|
# do nothing, this is a dangerous Git command when managing dot files
|
|
|
|
# report the command as disabled and exit as a failure
|
|
|
|
assert run.failure
|
2023-07-10 15:43:17 -04:00
|
|
|
assert run.out == ""
|
|
|
|
assert "disabled" in run.err
|