mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-07 03:15:56 +00:00
16 lines
352 B
Python
16 lines
352 B
Python
import unittest
|
|
from unittest.mock import patch
|
|
|
|
import cli.__main__ as entrypoint
|
|
|
|
|
|
class TestCliEntrypoint(unittest.TestCase):
|
|
def test_entrypoint_calls_core_main(self):
|
|
with patch("cli.__main__.main") as mock_main:
|
|
entrypoint.main()
|
|
mock_main.assert_called_once()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|