Tidy up the regression test output a little.

pull/3/head
Dave Page 2017-02-16 11:40:54 +00:00
parent 05d2373c9a
commit 03f292ce51
9 changed files with 9 additions and 21 deletions

View File

@ -44,8 +44,7 @@ class FTSConfGetTestCase(BaseTestGenerator):
self.server, self.db_name, self.schema_name, self.fts_conf_name)
def runTest(self):
""" This function will fetch new FTS configuration under
test schema. """
""" This function will fetch new FTS configuration under test schema. """
db_con = database_utils.connect_database(self,
utils.SERVER_GROUP,

View File

@ -30,7 +30,7 @@ class FtsDictionaryAddTestCase(BaseTestGenerator):
]
def runTest(self):
""" This function will add new FTS dictionary under test schema. """
self.schema_data = parent_node_dict['schema'][-1]
self.schema_name = self.schema_data['schema_name']
self.schema_id = self.schema_data['schema_id']

View File

@ -46,7 +46,7 @@ class FtsDictionaryGetTestCase(BaseTestGenerator):
self.fts_dict_name)
def runTest(self):
""" This function will fetch new FTS dictionaries under test schema. """
db_con = database_utils.connect_database(self,
utils.SERVER_GROUP,
self.server_id,

View File

@ -47,8 +47,7 @@ class FtsDictionaryPutTestCase(BaseTestGenerator):
self.fts_dict_name)
def runTest(self):
""" This function will update FTS dictionary present under
test schema. """
""" This function will update FTS dictionary present under test schema. """
db_con = database_utils.connect_database(self,
utils.SERVER_GROUP,

View File

@ -29,7 +29,7 @@ class FtsParserAddTestCase(BaseTestGenerator):
]
def runTest(self):
""" This function will add a new FTS parser under test schema. """
self.schema_data = parent_node_dict['schema'][-1]
self.schema_name = self.schema_data['schema_name']
self.schema_id = self.schema_data['schema_id']

View File

@ -45,10 +45,7 @@ class FtsParserDeleteTestCase(BaseTestGenerator):
self.fts_parser_name)
def runTest(self):
""" This function will delete FTS parser present under
test schema. """
""" This function will delete FTS parser present under test schema. """
db_con = database_utils.connect_database(self,
utils.SERVER_GROUP,
self.server_id,

View File

@ -45,7 +45,7 @@ class FtsParserGetTestCase(BaseTestGenerator):
self.fts_parser_name)
def runTest(self):
""" This function will fetch new FTS parser under test schema. """
db_con = database_utils.connect_database(self,
utils.SERVER_GROUP,
self.server_id,

View File

@ -46,10 +46,7 @@ class FtsParserPutTestCase(BaseTestGenerator):
self.fts_parser_name)
def runTest(self):
""" This function will update FTS parser present under
test schema. """
""" This function will update FTS parser present under test schema. """
db_con = database_utils.connect_database(self,
utils.SERVER_GROUP,
self.server_id,

View File

@ -12,9 +12,7 @@ if sys.version_info[0] >= 3:
class TestTablesNode(BaseTestGenerator):
def runTest(self):
"""
This tests that all applicable sql template versions can fetch table names
"""
""" This tests that all applicable sql template versions can fetch table names """
with test_utils.Database(self.server) as (connection, database_name):
test_utils.create_table(self.server, database_name, "test_table")
@ -41,8 +39,6 @@ class TestTablesNode(BaseTestGenerator):
for index, description in enumerate(cursor.description):
first_row[description.name] = fetch_result[0][index]
print (first_row)
oid = first_row['oid']
name = first_row['name']
triggercount = first_row['triggercount']