From 6f5ab83a5f5551a15743897494f522128d4aa245 Mon Sep 17 00:00:00 2001
From: morkolai <nikolai-mork@live.no>
Date: Fri, 28 Feb 2020 15:02:17 +0100
Subject: [PATCH] #9 Fikset linting

---
 test/test_database.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/test/test_database.py b/test/test_database.py
index c69c18d..0e55058 100644
--- a/test/test_database.py
+++ b/test/test_database.py
@@ -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
-- 
GitLab