diff options
author | Petr Blaho <petrblaho@gmail.com> | 2014-06-12 15:17:50 +0200 |
---|---|---|
committer | Petr Blaho <petrblaho@gmail.com> | 2014-08-03 17:08:21 +0200 |
commit | 3cb592775d063df9afdb65e0d59338b31363d089 (patch) | |
tree | 7ba4451b429a2bca397e3dbd9167fa2ecfff898b /tests | |
parent | 0996c5d0166ac17065993ac857201024da1f63a7 (diff) | |
download | oslo-db-3cb592775d063df9afdb65e0d59338b31363d089.tar.gz |
Adds empty line to multilines docs to pass H405
Adds empty line to multilines docs to pass H405 check.
Removes H405 from ignore setting in tox.ini.
Change-Id: I0516fb12765bf961a4488570a6c73b80f667d972
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sqlalchemy/test_exc_filters.py | 9 | ||||
-rw-r--r-- | tests/sqlalchemy/test_migrate_cli.py | 9 | ||||
-rw-r--r-- | tests/sqlalchemy/test_sqlalchemy.py | 1 |
3 files changed, 13 insertions, 6 deletions
diff --git a/tests/sqlalchemy/test_exc_filters.py b/tests/sqlalchemy/test_exc_filters.py index 42e4365..8e1e1ad 100644 --- a/tests/sqlalchemy/test_exc_filters.py +++ b/tests/sqlalchemy/test_exc_filters.py @@ -144,7 +144,9 @@ class TestFallthroughsAndNonDBAPI(TestsExceptionFilter): matched.message) def test_operational_error_asis(self): - """test that SQLAlchemy OperationalErrors that aren't disconnects + """Test operational errors. + + test that SQLAlchemy OperationalErrors that aren't disconnects are passed through without wrapping. """ @@ -504,8 +506,9 @@ class IntegrationTest(test_base.DbTestCase): self.assertRaises(exception.DBDuplicateEntry, _session.flush) def test_autoflush_wrapper_duplicate_entry(self): - """test a duplicate entry exception raised via - query.all()-> autoflush + """Test a duplicate entry exception raised. + + test a duplicate entry exception raised via query.all()-> autoflush """ _session = self.sessionmaker() diff --git a/tests/sqlalchemy/test_migrate_cli.py b/tests/sqlalchemy/test_migrate_cli.py index f23ee87..32e9a9d 100644 --- a/tests/sqlalchemy/test_migrate_cli.py +++ b/tests/sqlalchemy/test_migrate_cli.py @@ -37,14 +37,17 @@ class TestAlembicExtension(test_base.BaseTestCase): super(TestAlembicExtension, self).setUp() def test_check_enabled_true(self, command): - """Verifies that enabled returns True on non empty + """Check enabled returns True + + Verifies that enabled returns True on non empty alembic_ini_path conf variable """ self.assertTrue(self.alembic.enabled) def test_check_enabled_false(self, command): - """Verifies enabled returns False on empty - alembic_ini_path variable + """Check enabled returns False + + Verifies enabled returns False on empty alembic_ini_path variable """ self.migration_config['alembic_ini_path'] = '' alembic = ext_alembic.AlembicExtension(self.migration_config) diff --git a/tests/sqlalchemy/test_sqlalchemy.py b/tests/sqlalchemy/test_sqlalchemy.py index ff8d9ba..9b8efcb 100644 --- a/tests/sqlalchemy/test_sqlalchemy.py +++ b/tests/sqlalchemy/test_sqlalchemy.py @@ -183,6 +183,7 @@ class MySQLStrictAllTablesModeTestCase(MySQLModeTestCase): class MySQLTraditionalModeTestCase(MySQLStrictAllTablesModeTestCase): """Test data integrity enforcement in MySQL TRADITIONAL mode. + Since TRADITIONAL includes STRICT_ALL_TABLES, this inherits all STRICT_ALL_TABLES mode tests. """ |