aboutsummaryrefslogtreecommitdiff
path: root/backend/tests/test_gen_linked_imgs.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/test_gen_linked_imgs.py
parentf5e87ae628bab0eef97b3e3e62f6d71cca9c99c0 (diff)
Adjust backend coding style
Add line spacing, section comments, and import consistency
Diffstat (limited to 'backend/tests/test_gen_linked_imgs.py')
-rw-r--r--backend/tests/test_gen_linked_imgs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/tests/test_gen_linked_imgs.py b/backend/tests/test_gen_linked_imgs.py
index b989407..be4b0d1 100644
--- a/backend/tests/test_gen_linked_imgs.py
+++ b/backend/tests/test_gen_linked_imgs.py
@@ -1,5 +1,6 @@
import unittest
-import tempfile, os
+import tempfile
+import os
from tests.common import createTestDbTable, readTestDbTable
from tol_data.gen_linked_imgs import genData
@@ -70,8 +71,10 @@ class TestGenData(unittest.TestCase):
('thirteen', 12, 'enwiki'),
}
)
+
# Run
genData(dbFile)
+
# Check
self.assertEqual(
readTestDbTable(dbFile, 'SELECT name, otol_ids from linked_imgs'),