Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for non-existent file extension pattern (*.qwerty) #120

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RyanL2004
Copy link
Contributor

@RyanL2004 RyanL2004 commented Jan 10, 2025

Old version:

Test that when using a pattern for a non-existent file extension *.qwerty,
no files are processed despite other valid files being present in the directory.

New version:

Test that when using a pattern for a non-existent file extension *.qwerty,
no files are matched or included in the result, but the directory structure
information is still captured.

This test verifies:

  1. The scan completes without errors
  2. No files are matched with the non-existent extension
  3. Directory structure is still captured but empty since no files match
  4. File information is present but content is ignored due to no matches
  5. pytest:
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant