mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-01-22 14:41:40 +00:00
Minor fixes to tests
This commit is contained in:
@@ -70,12 +70,14 @@ def _file_not_found(dir, fcn):
|
||||
|
||||
|
||||
def _multi_byte_unicode(dir, fcn):
|
||||
file = op.join(dir, "😇.txt")
|
||||
_create_tree(file)
|
||||
fcn(file)
|
||||
assert op.exists(file) is False
|
||||
single_file = op.join(dir, "😇.txt")
|
||||
_create_tree(single_file)
|
||||
assert op.exists(single_file) is True
|
||||
fcn(single_file)
|
||||
assert op.exists(single_file) is False
|
||||
files = [op.join(dir, "😇{}.txt".format(index)) for index in range(10)]
|
||||
[_create_tree(file) for file in files]
|
||||
assert all([op.exists(file) for file in files]) is True
|
||||
fcn(files)
|
||||
assert any([op.exists(file) for file in files]) is False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user