fix: format all code with black
and from now on should not deviate from that...
This commit is contained in:
parent
bad6ded72d
commit
a0b36a6384
12 changed files with 313 additions and 220 deletions
|
@ -16,18 +16,18 @@ class TestMain(DataTestCase):
|
|||
|
||||
def test_basic(self):
|
||||
global_config = None
|
||||
settings = {'wutta_config': self.config}
|
||||
settings = {"wutta_config": self.config}
|
||||
app = mod.main(global_config, **settings)
|
||||
self.assertIsInstance(app, Router)
|
||||
self.assertIsNone(CoreOpSession.session_factory.kw['bind'])
|
||||
self.assertIsNone(CoreOpSession.session_factory.kw["bind"])
|
||||
|
||||
def test_corepos_engine(self):
|
||||
engine = sa.create_engine('sqlite://')
|
||||
engine = sa.create_engine("sqlite://")
|
||||
self.config.core_office_op_engine = engine
|
||||
settings = {'wutta_config': self.config}
|
||||
settings = {"wutta_config": self.config}
|
||||
app = mod.main(None, **settings)
|
||||
self.assertIsInstance(app, Router)
|
||||
self.assertIs(CoreOpSession.session_factory.kw['bind'], engine)
|
||||
self.assertIs(CoreOpSession.session_factory.kw["bind"], engine)
|
||||
|
||||
|
||||
class TestMakeWsgiApp(DataTestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue