File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from pathlib import Path
44import 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
You can’t perform that action at this time.
0 commit comments