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:
Matt Dietz
2014-09-05 22:06:17 +00:00
parent a860b991cd
commit 15ce0a7670
2 changed files with 3 additions and 1 deletions

View File

@@ -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