Run black code formatter

This commit is contained in:
Eric Torres 2019-04-17 20:23:53 -07:00
parent 0b29f9eb30
commit d6ecc6bbc3
2 changed files with 8 additions and 8 deletions

View File

@ -97,7 +97,7 @@ class Hierarchy(PathLike):
# noinspection PyUnresolvedReferences # noinspection PyUnresolvedReferences
if not shutil.rmtree.avoids_symlink_attacks: if not shutil.rmtree.avoids_symlink_attacks:
syslog.error( syslog.error(
"shutil cannot avoid symlink attacks on this platform. Ignoring." "shutil cannot avoid symlink attacks on this platform. Ignoring."
) )
return return

View File

@ -74,15 +74,15 @@ class TestHierarchyCleanup(unittest.TestCase):
def setUp(self): def setUp(self):
self.patched_path = patch.multiple( self.patched_path = patch.multiple(
Path, Path,
exists=DEFAULT, exists=DEFAULT,
mkdir=DEFAULT, mkdir=DEFAULT,
symlink_to=DEFAULT, symlink_to=DEFAULT,
touch=DEFAULT, touch=DEFAULT,
unlink=DEFAULT, unlink=DEFAULT,
) )
self.patched_metadata = patch.multiple( self.patched_metadata = patch.multiple(
Hierarchy, read_metadata=DEFAULT, write_metadata=DEFAULT Hierarchy, read_metadata=DEFAULT, write_metadata=DEFAULT
) )
self.patched_shutil = patch.multiple(f"{TESTING_MODULE}.shutil", rmtree=DEFAULT) self.patched_shutil = patch.multiple(f"{TESTING_MODULE}.shutil", rmtree=DEFAULT)