fix: format all code with black
and from now on should not deviate from that...
This commit is contained in:
parent
49f9a0228b
commit
a6bb538ce9
59 changed files with 2762 additions and 2131 deletions
|
@ -9,17 +9,16 @@ from wuttjamaican.app import AppHandler
|
|||
|
||||
|
||||
here = os.path.dirname(__file__)
|
||||
example_conf = os.path.join(here, 'example.conf')
|
||||
example_conf = os.path.join(here, "example.conf")
|
||||
|
||||
|
||||
class TestMakeAppdir(ConfigTestCase):
|
||||
|
||||
def test_basic(self):
|
||||
appdir = os.path.join(self.tempdir, 'app')
|
||||
ctx = MagicMock(params={'config_paths': [example_conf],
|
||||
'appdir_path': appdir})
|
||||
appdir = os.path.join(self.tempdir, "app")
|
||||
ctx = MagicMock(params={"config_paths": [example_conf], "appdir_path": appdir})
|
||||
ctx.parent.wutta_config = self.config
|
||||
|
||||
with patch.object(AppHandler, 'make_appdir') as make_appdir:
|
||||
with patch.object(AppHandler, "make_appdir") as make_appdir:
|
||||
mod.make_appdir(ctx)
|
||||
make_appdir.assert_called_once_with(appdir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue