fix pep8 problem (ansible#84344)

pull/84345/head
root 1 week ago
parent ef988337d1
commit b910c4037e

@ -6,7 +6,7 @@ import unittest
class TestCopyDirectoryData(unittest.TestCase): class TestCopyDirectoryData(unittest.TestCase):
def test_copy_directory(self): def test_copy_directory(self):
"""Verify code from copy plugin""" """Verify code from copy plugin"""
source_files = { source_files = {
@ -39,10 +39,12 @@ class TestCopyDirectoryData(unittest.TestCase):
# skip last file name # skip last file name
for dir_component in paths[:-1]: for dir_component in paths[:-1]:
dir_path = os.path.join(dir_path, dir_component) dir_path = os.path.join(dir_path, dir_component)
print(dir_path)
implicit_directories.add(dir_path) implicit_directories.add(dir_path)
self.assertSetEqual(implicit_directories, {'a', 'b', 'e', 'b/bb', 'e/eb'}) self.assertSetEqual(
implicit_directories,
{'a', 'b', 'e', 'b/bb', 'e/eb'}
)
leaves = set() leaves = set()
for src, dest_path in source_files['directories']: for src, dest_path in source_files['directories']:

Loading…
Cancel
Save