From 92934ddb91c900f7a927bf064f4e9aa60c7cc058 Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Fri, 1 Jul 2016 12:50:34 -0400 Subject: [PATCH] Update the template for model sync test docs Update the docs to match the changes from https://review.openstack.org/332476 Related-bug: #1594898 Change-Id: Iefebbac213db043e27b5244b63df1e04ee9cdc4f --- doc/source/devref/template_model_sync_test.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/source/devref/template_model_sync_test.rst b/doc/source/devref/template_model_sync_test.rst index 43f7b87c110..fb8aab10acf 100644 --- a/doc/source/devref/template_model_sync_test.rst +++ b/doc/source/devref/template_model_sync_test.rst @@ -98,8 +98,8 @@ with the following content: :: from neutron.db.migration.alembic_migrations import external from neutron.db.migration import cli as migration - from neutron.tests.common import base from neutron.tests.functional.db import test_migrations + from neutron.tests.unit import testlib_api from networking_foo.db.migration import alembic_migrations from networking_foo.db.models import head @@ -130,13 +130,15 @@ with the following content: :: return True - class TestModelsMigrationsMysql(_TestModelsMigrationsFoo, - base.MySQLTestCase): + class TestModelsMigrationsMysql(testlib_api.MySQLTestCaseMixin, + _TestModelsMigrationsFoo, + testlib_api.SqlTestCaseLight): pass - class TestModelsMigrationsPsql(_TestModelsMigrationsFoo, - base.PostgreSQLTestCase): + class TestModelsMigrationsPsql(testlib_api.PostgreSQLTestCaseMixin, + _TestModelsMigrationsFoo, + testlib_api.SqlTestCaseLight): pass