Skip to content

Commit 45f3ad8

Browse files
committed
fix test_watch: update import after _run_update renamed to _notify_only
1 parent 014758f commit 45f3ad8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/test_watch.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33
from pathlib import Path
44
import pytest
55

6-
from graphify.watch import _run_update, _WATCHED_EXTENSIONS
6+
from graphify.watch import _notify_only, _WATCHED_EXTENSIONS
77

88

9-
# --- _run_update ---
9+
# --- _notify_only ---
1010

11-
def test_run_update_creates_flag(tmp_path):
12-
_run_update(tmp_path)
11+
def test_notify_only_creates_flag(tmp_path):
12+
_notify_only(tmp_path)
1313
flag = tmp_path / "graphify-out" / "needs_update"
1414
assert flag.exists()
1515
assert flag.read_text() == "1"
1616

17-
def test_run_update_creates_flag_dir(tmp_path):
17+
def test_notify_only_creates_flag_dir(tmp_path):
1818
# graphify-out dir does not exist yet
1919
assert not (tmp_path / "graphify-out").exists()
20-
_run_update(tmp_path)
20+
_notify_only(tmp_path)
2121
assert (tmp_path / "graphify-out").is_dir()
2222

23-
def test_run_update_idempotent(tmp_path):
24-
_run_update(tmp_path)
25-
_run_update(tmp_path)
23+
def test_notify_only_idempotent(tmp_path):
24+
_notify_only(tmp_path)
25+
_notify_only(tmp_path)
2626
flag = tmp_path / "graphify-out" / "needs_update"
2727
assert flag.read_text() == "1"
2828

0 commit comments

Comments
 (0)