You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/pt_snap_cli/core/focus_service.py:162: in _validated_context
return Context(db_path)
src/pt_snap_cli/context.py:65: in __init__
raise DatabaseNotFoundError(f"Database not found: {self.db_path}")
E pt_snap_cli.context.DatabaseNotFoundError: Database not found: /private/var/folders/.../pytest-316/test_import_returns_focus_stat0/snapshot_with_empty_cache.pkl.db
The above exception was the direct cause of the following exception:
src/pt_snap_cli/api.py:91: in set_focus
self._focus_service.validate_session_db(candidate_db, candidate_device)
...
tests/test_api.py:155: in test_set_focus_device_requires_database
analyzer.set_focus(device_id=0)
src/pt_snap_cli/api.py:93: in set_focus
raise FileNotFoundError(str(exc)) from exc
E FileNotFoundError: Database not found: ...
FAILED tests/test_api.py::TestSnapshotAnalyzerWithDB::test_set_focus_device_requires_database
1 failed, 568 passed, 1 xfailed
Activity
fix: isolate test_api focus resolution from ancestor .pt-snap/focus.j…