1
0
Fork 0
mirror of synced 2024-11-18 23:25:35 -05:00
yadm/test/test_clean.py

12 lines
352 B
Python
Raw Normal View History

"""Test clean"""
def test_clean_command(runner, yadm_cmd):
"""Run with clean command"""
run = runner(command=yadm_cmd('clean'))
# 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
assert run.out == ''
assert 'disabled' in run.err