@@ -266,14 +266,12 @@ def test_health_baseline_last_resolves_most_recent(cli_runner, indexed_project,
266266
267267def test_health_baseline_auto_filesystem_root_error_falls_back (monkeypatch ):
268268 """--baseline auto falls back to cwd only for filesystem root failures."""
269- from roam .commands import cmd_health
270269 import roam .db .connection as db_connection
270+ from roam .commands import cmd_health
271271
272272 conn = sqlite3 .connect (":memory:" )
273273 conn .row_factory = sqlite3 .Row
274- conn .execute (
275- "CREATE TABLE snapshots (timestamp INTEGER, git_branch TEXT, git_commit TEXT, health_score INTEGER)"
276- )
274+ conn .execute ("CREATE TABLE snapshots (timestamp INTEGER, git_branch TEXT, git_commit TEXT, health_score INTEGER)" )
277275 conn .execute (
278276 "INSERT INTO snapshots (timestamp, git_branch, git_commit, health_score) VALUES (?, ?, ?, ?)" ,
279277 (123 , "main" , "abc1234" , 90 ),
@@ -293,14 +291,12 @@ def _raise_oserror():
293291
294292def test_health_baseline_auto_project_root_programmer_error_propagates (monkeypatch ):
295293 """--baseline auto must not swallow bug-class project-root failures."""
296- from roam .commands import cmd_health
297294 import roam .db .connection as db_connection
295+ from roam .commands import cmd_health
298296
299297 conn = sqlite3 .connect (":memory:" )
300298 conn .row_factory = sqlite3 .Row
301- conn .execute (
302- "CREATE TABLE snapshots (timestamp INTEGER, git_branch TEXT, git_commit TEXT, health_score INTEGER)"
303- )
299+ conn .execute ("CREATE TABLE snapshots (timestamp INTEGER, git_branch TEXT, git_commit TEXT, health_score INTEGER)" )
304300
305301 def _raise_typeerror ():
306302 raise TypeError ("bad find_project_root refactor" )
0 commit comments