From 8781fdb2b8c530a6c1531ae9e82221eb062e34fb Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 29 Jan 2023 11:30:47 +1100 Subject: Adjust backend coding style Add line spacing, section comments, and import consistency --- backend/tests/dbpedia/test_gen_desc_data.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend/tests/dbpedia/test_gen_desc_data.py') diff --git a/backend/tests/dbpedia/test_gen_desc_data.py b/backend/tests/dbpedia/test_gen_desc_data.py index 7d35677..ae56c5e 100644 --- a/backend/tests/dbpedia/test_gen_desc_data.py +++ b/backend/tests/dbpedia/test_gen_desc_data.py @@ -1,5 +1,6 @@ import unittest -import tempfile, os +import tempfile +import os from tests.common import createTestBz2, readTestDbTable from tol_data.dbpedia.gen_desc_data import genData @@ -57,9 +58,11 @@ class TestGenData(unittest.TestCase): ' ' ' "Hats are not parrots, nor are they potatoes."@en .\n' )) + # Run dbFile = os.path.join(tempDir, 'descData.db') genData(labelsFile, idsFile, redirectsFile, disambigFile, typesFile, abstractsFile, dbFile) + # Check self.assertEqual( readTestDbTable(dbFile, 'SELECT iri, label from labels'), -- cgit v1.2.3