feat: add basic "create order" feature, docs, tests
just the package API docs so far, narrative will come later
This commit is contained in:
parent
89265f0240
commit
ef07d30a85
86 changed files with 7749 additions and 35 deletions
0
tests/cli/__init__.py
Normal file
0
tests/cli/__init__.py
Normal file
18
tests/cli/test_install.py
Normal file
18
tests/cli/test_install.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# -*- 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()
|
Loading…
Add table
Add a link
Reference in a new issue