summaryrefslogtreecommitdiff
path: root/test/test_clean.py
blob: 9a2221a7f4293c19c7356b9661f26f03809d1588 (plain)
1
2
3
4
5
6
7
8
9
10
11
"""Test clean"""


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