Patch `isdir` as well as `isfile` for module tests.
@@ -184,6 +184,10 @@ class patch_files(object):
'pyinfra.modules.files.path.isfile',
lambda *args, **kwargs: True, create=True,
),
+ patch(
+ 'pyinfra.modules.files.path.isdir',
+ lambda *args, **kwargs: True, create=True,
+ ),
patch('pyinfra.modules.files.open', self.get_file, create=True),
patch('pyinfra.api.util.open', self.get_file, create=True),
]
