Skip to content

Commit 012e27f

Browse files
authored
test_watcher: fix a failing test
Due to a missing repr_str attribute, the function `add_count` in `TestWatcher.test_watch_file` triggered an error in `Watcher.examine()`. Closes #171
1 parent ba92283 commit 012e27f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_watcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def test_watch_file(self):
5353

5454
def add_count():
5555
watcher.count += 1
56+
57+
add_count.repr_str = "add_count test task"
5658

5759
watcher.watch(filepath, add_count)
5860
assert watcher.is_changed(filepath)

0 commit comments

Comments
 (0)