Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
taljaards committed Oct 3, 2022
1 parent f9980e0 commit bed59ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_filesystems.py
Expand Up @@ -148,13 +148,16 @@ async def test_put_directory_put_file_count(self):
# Put files
fs = RemoteFileSystem(basepath="memory://tree")
num_files_put = await fs.put_directory(
os.path.join(TEST_PROJECTS_DIR, "tree-project"), ignore_file=ignore_file,
os.path.join(TEST_PROJECTS_DIR, "tree-project"),
ignore_file=ignore_file,
)

# Expected files
ignore_patterns = Path(ignore_file).read_text().splitlines(keepends=False)
included_files = prefect.utilities.filesystem.filter_files(
os.path.join(TEST_PROJECTS_DIR, "tree-project"), ignore_patterns, include_dirs=False
os.path.join(TEST_PROJECTS_DIR, "tree-project"),
ignore_patterns,
include_dirs=False
)
num_files_expected = len(included_files)

Expand Down

0 comments on commit bed59ec

Please sign in to comment.