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
The issue appears when performing a file move operation from not watched to a watched destination.
Expected behaviour: if destination file path in move operation appears to be watched (while source file path is not), pytest-watcher should trigger pytest.
Here is an example of events appearing when using unison tool, which is syncing changes to remote destination by first creating a temporary file and then renaming it to a destination:
The issue appears when performing a file move operation from not watched to a watched destination.
Expected behaviour: if destination file path in move operation appears to be watched (while source file path is not),
pytest-watcher
should triggerpytest
.Here is an example of events appearing when using unison tool, which is syncing changes to remote destination by first creating a temporary file and then renaming it to a destination:
These events gathered with
watchdog
example code here: https://pypi.org/project/watchdog/The fix seems to be pretty straightforward - just extend the condition in process_event method to something like this:
The text was updated successfully, but these errors were encountered: