Skip to content

Conversation

bidds95
Copy link

@bidds95 bidds95 commented May 12, 2025

It looks like commit #b75b523 may have inadvertently broken support for dashes in filenames. A small change to the regex pattern in _extract_includes() fixes the issue.

I haven't found any open issues or anything to suggest support was dropped (Issue #439 suggests it was supported in release 1.0.0). Let me know if I've missed something.

I've tweaked an existing unit test to cover dashes in filenames.

@bidds95 bidds95 marked this pull request as ready for review May 12, 2025 08:40
@swaldhoer
Copy link

Isn't this already fixed in d3c0bff (issue #780)?

@bidds95
Copy link
Author

bidds95 commented May 14, 2025

Isn't this already fixed in d3c0bff (issue #780)?

Hi @swaldhoer, I think these might be different issues. This issue affects the include directive whereas issue #780 only affects test filenames. For example, I spotted this when a mock wasn't being generated for a file which included dashes in the name, but I think it affects more than just mock generation.

@swaldhoer
Copy link

Ah sorry yes I think you are correct

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.

3 participants