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 fb424a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,16 @@ def test_modify():
assert isinstance(event, FileClosedEvent)


@pytest.mark.flaky(max_runs=5, min_passes=1, rerun_filter=rerun_filter)
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 fb424a5

Please sign in to comment.