aboutsummaryrefslogtreecommitdiff
path: root/backend/tests/dbpedia/test_gen_desc_data.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-29 11:30:47 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-29 11:30:47 +1100
commit8781fdb2b8c530a6c1531ae9e82221eb062e34fb (patch)
treeffd824aa9b945d69b47f012617ee13d98764d078 /backend/tests/dbpedia/test_gen_desc_data.py
parentf5e87ae628bab0eef97b3e3e62f6d71cca9c99c0 (diff)
Adjust backend coding style
Add line spacing, section comments, and import consistency
Diffstat (limited to 'backend/tests/dbpedia/test_gen_desc_data.py')
-rw-r--r--backend/tests/dbpedia/test_gen_desc_data.py5
1 files changed, 4 insertions, 1 deletions
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):
'<http://dbpedia.org/resource/A_Hat> <http://www.w3.org/2000/01/rdf-schema#comment>'
' "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'),