Skip to content

Commit

Permalink
added test for chmod events
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Schott committed Jul 13, 2021
1 parent 0ad7281 commit e997fd9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ def test_modify():
assert isinstance(event, FileClosedEvent)


def test_chomod():
mkfile(p('a'))
start_watching()

os.chmod(p('a'), 0o744)

expect_event(FileModifiedEvent(p('a')))


@pytest.mark.flaky(max_runs=5, min_passes=1, rerun_filter=rerun_filter)
def test_move():
mkdir(p('dir1'))
Expand Down

0 comments on commit e997fd9

Please sign in to comment.