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
if not shutil.rmtree.avoids_symlink_attacks:
syslog.error(
"shutil cannot avoid symlink attacks on this platform. Ignoring."
"shutil cannot avoid symlink attacks on this platform. Ignoring."
)
return

View File

@ -74,15 +74,15 @@ class TestHierarchyCleanup(unittest.TestCase):
def setUp(self):
self.patched_path = patch.multiple(
Path,
exists=DEFAULT,
mkdir=DEFAULT,
symlink_to=DEFAULT,
touch=DEFAULT,
unlink=DEFAULT,
Path,
exists=DEFAULT,
mkdir=DEFAULT,
symlink_to=DEFAULT,
touch=DEFAULT,
unlink=DEFAULT,
)
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)