From 9f947dc5ddd56ffb770bfc65b96c1a60000e787c Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 20 Feb 2015 14:54:43 +0100 Subject: [PATCH] devref: fixed class name for test_migrations autodocumentation The file name is different, so documentation was not properly generated before. Also fixed a docstring not to issue sphinx warning due to incorrect indentation. Change-Id: I48ab899077458d99eee6f643577d574106c1ca88 --- doc/source/devref/db_layer.rst | 2 +- neutron/tests/functional/db/test_migrations.py | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/doc/source/devref/db_layer.rst b/doc/source/devref/db_layer.rst index d0d7bd521..0ddd94ea1 100644 --- a/doc/source/devref/db_layer.rst +++ b/doc/source/devref/db_layer.rst @@ -5,7 +5,7 @@ Neutron Database Layer Tests to verify that database migrations and models are in sync --------------------------------------------------------------- -.. automodule:: neutron.tests.functional.db.test_migration +.. automodule:: neutron.tests.functional.db.test_migrations .. autoclass:: _TestModelsMigrations :members: diff --git a/neutron/tests/functional/db/test_migrations.py b/neutron/tests/functional/db/test_migrations.py index 8c831230a..05d1fac1d 100644 --- a/neutron/tests/functional/db/test_migrations.py +++ b/neutron/tests/functional/db/test_migrations.py @@ -111,15 +111,14 @@ class _TestModelsMigrations(test_migrations.ModelsMigrationsSync): * ``add_*`` means that it is missing in db; * ``modify_*`` means that on column in db is set wrong - type/nullable/server_default. Element contains information: - * what should be modified, - * schema, - * table, - * column, - * existing correct column parameters, - * right value, - * wrong value. - + type/nullable/server_default. Element contains information: + - what should be modified, + - schema, + - table, + - column, + - existing correct column parameters, + - right value, + - wrong value. ''' def setUp(self): -- 2.45.2