sideshow/tests/cli/test_install.py
Lance Edgar ef07d30a85 feat: add basic "create order" feature, docs, tests
just the package API docs so far, narrative will come later
2025-01-06 17:03:41 -06:00

19 lines
478 B
Python

# -*- coding: utf-8; -*-
from unittest.mock import MagicMock, patch
from wuttjamaican.testing import ConfigTestCase
from wuttjamaican.install import InstallHandler
from sideshow.cli import install as mod
class TestInstall(ConfigTestCase):
def test_run(self):
ctx = MagicMock(params={})
ctx.parent.wutta_config = self.config
with patch.object(InstallHandler, 'run') as run:
mod.install(ctx)
run.assert_called_once_with()