mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
- Split dedicated deploy logic into focused modules (apps, modes, paths, proc, runner) - Ensure all make targets run from the repository root via explicit cwd handling - Fix "make: No rule to make target" errors caused by incorrect working directory - Slim down __main__ to a thin CLI entrypoint - Rework unit tests into one file per module and expand coverage https://chatgpt.com/share/69472632-9740-800f-962c-bcb4474963d6
22 lines
648 B
Python
22 lines
648 B
Python
from __future__ import annotations
|
|
|
|
import unittest
|
|
|
|
from cli.deploy import dedicated as deploy
|
|
from cli.deploy.dedicated import modes
|
|
|
|
|
|
class TestDedicatedInitExports(unittest.TestCase):
|
|
def test_main_is_exported(self):
|
|
self.assertTrue(callable(deploy.main))
|
|
|
|
def test_parse_bool_literal_is_reexported_from_modes(self):
|
|
self.assertIs(deploy._parse_bool_literal, modes._parse_bool_literal)
|
|
self.assertTrue(deploy._parse_bool_literal("true"))
|
|
self.assertFalse(deploy._parse_bool_literal("false"))
|
|
self.assertIsNone(deploy._parse_bool_literal("maybe"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|