Skip to main content

test: cover normal behavior and edge cases

GBB Demo authored on Nov 2, 2026

parent 39b8c78commit b153d4edd72b

1 file changed, +17 −0

  • test_app.py+17 −0
    @@ -1,0 +1,17 @@
    1+import unittest
    2+import app
    3+
    4+class ApplicationTests(unittest.TestCase):
    5+ def test_inspection(self):
    6+ import tempfile
    7+ from pathlib import Path
    8+ with tempfile.TemporaryDirectory() as directory:
    9+ Path(directory, "README.md").write_text("demo")
    10+ Path(directory, ".hidden").write_text("excluded")
    11+ result = app.inspect_project(directory)
    12+ self.assertEqual(result["files"], ["README.md"])
    13+ self.assertEqual(result["count"], 1)
    14+
    15+
    16+if __name__ == "__main__":
    17+ unittest.main()