We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
startswith
1 parent 5ea14b2 commit a9f6951Copy full SHA for a9f6951
tests/test_package_generation.py
@@ -80,10 +80,10 @@ def test_package_generation(
80
81
actual_files = get_all_files_folders(test_project_dir)
82
# Filter out anything under specific directories to make comparison easier
83
- actual_files = actual_files - {
84
- a
85
- for a in actual_files
86
- if len(a.parts) > 0 and a.parts[0] in (".git", "__pycache__")
+ actual_files = {
+ path
+ for path in actual_files
+ if not str(path).startswith((".git/", "__pycache__/"))
87
}
88
89
assert actual_files == expected_files
0 commit comments