Closed Corentin-pro closed 2 weeks ago
Added 2 tests for the new follow_symlink options.
follow_symlink
The tests correctly fail if follow_symlink is set to False.
False
The code coverage slightly increases, this only adds the line 185 of src/watchdog/observers/inotify_c.py corresponding to
185
src/watchdog/observers/inotify_c.py
if follow_symlink: event_mask &= ~InotifyConstants.IN_DONT_FOLLOW
PS : a minor code style was automatically fixed in src/watchdog/observers/fsevents.py.
src/watchdog/observers/fsevents.py
Thanks a lot @Corentin-pro 🥂
Added 2 tests for the new
follow_symlink
options.The tests correctly fail if
follow_symlink
is set toFalse
.The code coverage slightly increases, this only adds the line
185
ofsrc/watchdog/observers/inotify_c.py
corresponding toPS : a minor code style was automatically fixed in
src/watchdog/observers/fsevents.py
.