from __future__ import annotations import unittest from pathlib import Path class PackagingDocsTests(unittest.TestCase): def test_install_docs_cover_smoke_pg_and_archive_commands(self): install = Path("INSTALL.md").read_text(encoding="utf-8") readme = Path("README.md").read_text(encoding="utf-8") self.assertIn("python scripts/imagestudio_non_ui_smoke.py", install) self.assertIn("python scripts/imagestudio_pg_smoke.py --dry-run", install) self.assertIn("git archive --format=zip", install) self.assertIn("psycopg2", install) self.assertIn("[INSTALL.md](INSTALL.md)", readme) if __name__ == "__main__": unittest.main()