Skip to content
Snippets Groups Projects
Commit 6f5ab83a authored by morkolai's avatar morkolai
Browse files

#9 Fikset linting

parent f07499be
No related branches found
No related tags found
1 merge request!10Database setup
Pipeline #71246 failed
......@@ -5,7 +5,7 @@ import unittest
import json
from soitool.database import Database
TESTDATA_PATH = Path(__file__).parent.parent/"soitool/testdata"
TESTDATA_PATH = Path(__file__).parent.parent / "soitool/testdata"
class DatabaseTest(unittest.TestCase):
......@@ -149,9 +149,7 @@ class DatabaseTest(unittest.TestCase):
self.assertEqual(entry['code'], actual[i]['code'])
def test_get_codebook_small(self):
"""
Assert function get_codebook only return the small codebook.
"""
"""Assert function get_codebook only return the small codebook."""
# Load full codebook
file_path = os.path.join(TESTDATA_PATH, "codebook.json")
with open(file_path, "r") as file:
......@@ -161,7 +159,7 @@ class DatabaseTest(unittest.TestCase):
# Fill expected with only small codebook entries
expected = []
for entry in data:
if (entry['type'] == 1):
if entry['type'] == 1:
expected.append(entry)
# Get small codebook from db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment