fix: Remove obsolete tests for deleted sync functionality

Removed tests for:
- test_bisync_commands.py (tenant-wide bisync functions)
- test_cloud_utils.py (deprecated utilities)
- test_rclone_config.py (mount profiles)
- test_sync_commands_integration.py (removed sync command)

Fixed:
- Removed 'sync' import from commands/__init__.py

Tests now pass with SPEC-20 project-scoped architecture.

Signed-off-by: phernandez <paul@basicmachines.co>
This commit is contained in:
phernandez
2025-10-28 13:48:51 -05:00
parent da9c7028b7
commit db85186e37
12 changed files with 18 additions and 1003 deletions
+1 -2
View File
@@ -1,11 +1,10 @@
"""CLI commands for basic-memory."""
from . import status, sync, db, import_memory_json, mcp, import_claude_conversations
from . import status, db, import_memory_json, mcp, import_claude_conversations
from . import import_claude_projects, import_chatgpt, tool, project
__all__ = [
"status",
"sync",
"db",
"import_memory_json",
"mcp",
@@ -1,10 +1,5 @@
"""Cloud bisync utility functions for Basic Memory CLI.
"""Cloud bisync utility functions for Basic Memory CLI."""
SPEC-20: Simplified to project-scoped operations only.
Tenant-wide bisync functions have been removed in favor of project-scoped commands.
"""
import asyncio
from pathlib import Path
from basic_memory.cli.commands.cloud.api_client import make_api_request
@@ -289,4 +289,4 @@ def project_ls(
cmd = ["rclone", "ls", remote_path]
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
return result.stdout.splitlines()
return result.stdout.splitlines()
+6 -2
View File
@@ -84,7 +84,9 @@ def add_project(
path: str = typer.Argument(
None, help="Path to the project directory (required for local mode)"
),
local_path: str = typer.Option(None, "--local-path", help="Local sync path for cloud mode (optional)"),
local_path: str = typer.Option(
None, "--local-path", help="Local sync path for cloud mode (optional)"
),
set_default: bool = typer.Option(False, "--default", help="Set as default project"),
) -> None:
"""Add a new project.
@@ -581,7 +583,9 @@ def ls_project_command(
console.print(f" {file}")
console.print(f"\n[dim]Total: {len(files)} files[/dim]")
else:
console.print(f"[yellow]No files found in {name}" + (f"/{path}" if path else "") + "[/yellow]")
console.print(
f"[yellow]No files found in {name}" + (f"/{path}" if path else "") + "[/yellow]"
)
except Exception as e:
console.print(f"[red]Error: {e}[/red]")
-1
View File
@@ -13,7 +13,6 @@ from basic_memory.cli.commands import ( # noqa: F401 # pragma: no cover
mcp,
project,
status,
sync,
tool,
)