Skip to content

anbeime/skill / skills/handraw-style/handraw-style/skills/couple-photo-orchestrator/skills/zongkong

couple-photo-orchestrator

Verified

Orchestrates professional portrait, couple, wedding, family, cosplay, and themed photography planning from direction selection through Look, scene micro-zones, Shot List, and on-demand image generation.

tests/test_init_project.py

View on GitHub
from __future__ import annotations

import subprocess
import sys
import tempfile
import unittest
from pathlib import Path


ROOT = Path(__file__).resolve().parents[3]
INIT = ROOT / "skills" / "zongkong" / "scripts" / "init_project.py"


class InitProjectTests(unittest.TestCase):
    def command(self, *args: str, check: bool = True) -> subprocess.CompletedProcess[str]:
        return subprocess.run([sys.executable, str(INIT), *args], cwd=ROOT, check=check, text=True, capture_output=True)

    def test_creates_a_user_selected_new_absolute_directory(self) -> None:
        with tempfile.TemporaryDirectory() as temp:
            project = Path(temp) / "selected-project"
            self.command("test-couple", "--project-dir", str(project))
            self.assertTrue((project / "project.yaml").exists())
            self.assertTrue((project / "themes").is_dir())

    def test_accepts_a_user_selected_empty_directory(self) -> None:
        with tempfile.TemporaryDirectory() as temp:
            project = Path(temp) / "empty-project"
            project.mkdir()
            self.command("test-couple", "--project-dir", str(project))
            self.assertTrue((project / "themes").is_dir())

    def test_rejects_missing_relative_and_non_empty_directories_without_writing(self) -> None:
        missing = self.command("test-couple", check=False)
        self.assertNotEqual(missing.returncode, 0)

        relative = self.command("test-couple", "--project-dir", "relative-project", check=False)
        self.assertNotEqual(relative.returncode, 0)

        with tempfile.TemporaryDirectory() as temp:
            project = Path(temp) / "occupied-project"
            project.mkdir()
            sentinel = project / "keep.txt"
            sentinel.write_text("keep", encoding="utf-8")
            occupied = self.command("test-couple", "--project-dir", str(project), check=False)
            self.assertNotEqual(occupied.returncode, 0)
            self.assertEqual(sentinel.read_text(encoding="utf-8"), "keep")
            self.assertFalse((project / "project.yaml").exists())


if __name__ == "__main__":
    unittest.main()
planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies.Stars: 108kUpdated Claude CodeCodexVerifiedInstall
meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要".Stars: 108kUpdated Claude CodeCodexVerifiedInstall