add patches to clean command

This commit is contained in:
2021-10-20 03:22:16 +03:00
parent 47c54f0b40
commit 0b9ab09879
7 changed files with 40 additions and 8 deletions

View File

@ -82,3 +82,12 @@ def test_clear_packages(cleaner: Cleaner, mocker: MockerFixture) -> None:
cleaner.clear_packages()
Path.unlink.assert_has_calls([mock.call(), mock.call(), mock.call()])
def test_clear_patches(cleaner: Cleaner, mocker: MockerFixture) -> None:
"""
must clear directory with patches
"""
_mock_clear(mocker)
cleaner.clear_patches()
_mock_clear_check()