You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a double check. While the files are opened, due to the nature of the iterator the file is not read when there are no patterns.
Even so it is a shame to read the file twice when there are both regexes and strings so that is also fixed now.
The below code will open files and loop through them regardless of the presence of patterns to match against.
I propose to make the file opening conditional based on the presence of patterns.
pytest-workflow/src/pytest_workflow/content_tests.py
Lines 147 to 156 in ef7f312
e.g:
The text was updated successfully, but these errors were encountered: