import pytest
from pathlib import Path
from src import project_manager

def test_default_project_execution_mode():
 proj = project_manager.default_project()
 assert "project" in proj
 assert "execution_mode" in proj["project"]
 assert proj["project"]["execution_mode"] == "native"

def test_load_save_execution_mode(tmp_path: Path):
 proj = project_manager.default_project()
 proj["project"]["execution_mode"] = "beads"
 
 toml_path = tmp_path / "manual_slop.toml"
 project_manager.save_project(proj, toml_path)
 
 loaded_proj = project_manager.load_project(toml_path)
 assert loaded_proj["project"]["execution_mode"] == "beads"
