forked from openlp/openlp
Finish common again
This commit is contained in:
parent
ac95f4e3ca
commit
c25a446839
@ -177,12 +177,11 @@ class TestShutil(TestCase):
|
||||
path = Path('test', 'path')
|
||||
|
||||
# WHEN: Calling :func:`openlp.core.common.path.rmtree` with the path parameter as Path object type
|
||||
result = path.rmtree()
|
||||
path.rmtree()
|
||||
|
||||
# THEN: :func:`shutil.rmtree` should have been called with the str equivalents of the Path object.
|
||||
mocked_shutil_rmtree.assert_called_once_with(
|
||||
os.path.join('test', 'path'), False, None)
|
||||
assert not result
|
||||
|
||||
def test_rmtree_optional_params(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user