Quieter unit tests
I couldn't find any options while perusing the alembic documentation that specifically controlled logging, plus control of everything seems to fall under the env.py umbrella, so I decided I would leave logging unconfigured unless it was otherwise necessary. There are still a handful of warnings that appear in the test run that can be cleaned up later, but at least the entire run fits on one screen again.
This commit is contained in:
@@ -27,6 +27,7 @@ class BaseMigrationTest(test_base.TestBase):
|
||||
os.path.join(quark.db.migration.__path__[0], 'alembic.ini'))
|
||||
self.config.set_main_option('script_location',
|
||||
'quark.db.migration:alembic')
|
||||
self.config.set_main_option("quiet_mode", "True")
|
||||
self.fileno, self.filepath = tempfile.mkstemp()
|
||||
secret_cfg = mock.MagicMock()
|
||||
secret_cfg.database.connection = "sqlite:///" + self.filepath
|
||||
|
||||
Reference in New Issue
Block a user