fix: add us-cpa tax year rules and package metadata

This commit is contained in:
Stefano Fiorini
2026-03-15 02:47:14 -05:00
parent d3fd874330
commit 6c02e0b7c6
9 changed files with 211 additions and 45 deletions

View File

@@ -13,15 +13,33 @@ SKILL_DIR = Path(__file__).resolve().parents[1]
SRC_DIR = SKILL_DIR / "src"
def _pyproject_text() -> str:
return (SKILL_DIR / "pyproject.toml").read_text()
class UsCpaCliSmokeTests(unittest.TestCase):
def test_skill_scaffold_files_exist(self) -> None:
self.assertTrue((SKILL_DIR / "SKILL.md").exists())
self.assertTrue((SKILL_DIR / "pyproject.toml").exists())
self.assertTrue((SKILL_DIR / "README.md").exists())
self.assertTrue((SKILL_DIR / "scripts" / "us-cpa").exists())
self.assertTrue(
(SKILL_DIR.parent.parent / "docs" / "us-cpa.md").exists()
)
def test_pyproject_declares_runtime_and_dev_dependencies(self) -> None:
pyproject = _pyproject_text()
self.assertIn('"pypdf>=', pyproject)
self.assertIn('"reportlab>=', pyproject)
self.assertIn("[project.optional-dependencies]", pyproject)
self.assertIn('"pytest>=', pyproject)
def test_readme_documents_install_and_script_usage(self) -> None:
readme = (SKILL_DIR / "README.md").read_text()
self.assertIn("pip install -e .[dev]", readme)
self.assertIn("scripts/us-cpa", readme)
self.assertIn("python -m unittest", readme)
def test_fixture_directories_exist(self) -> None:
fixtures_dir = SKILL_DIR / "tests" / "fixtures"
for name in ("irs", "facts", "documents", "returns"):