Files
computer-playbook/tests/unit/cli/deploy/dedicated/test_init.py
T
kevinveenbirkenbach 103659a534 refactor(deploy): modularize dedicated deploy CLI and fix make cwd issue
- 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
2025-12-20 23:41:41 +01:00

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()