Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Oct 11, 2024
1 parent a9f6951 commit 64193a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_package_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def test_package_generation(
# Check main files and directories inside
expected_files: set[pathlib.Path] = {
pathlib.Path(),
pathlib.Path(".git"),
pathlib.Path(".github"),
pathlib.Path(".github/ISSUE_TEMPLATE"),
pathlib.Path(".github/ISSUE_TEMPLATE/bug_report.yml"),
Expand Down Expand Up @@ -80,10 +79,11 @@ def test_package_generation(

actual_files = get_all_files_folders(test_project_dir)
# Filter out anything under specific directories to make comparison easier
actual_files = {
path
for path in actual_files
if not str(path).startswith((".git/", "__pycache__/"))
actual_files = actual_files - {
a
for a in actual_files
if len(a.parts) > 0
and (a.parts[0] == ".git" or "__pycache__" in a.parts or ".DS_Store" in a.parts)
}

assert actual_files == expected_files
Expand Down

0 comments on commit 64193a4

Please sign in to comment.