Fixing black errors 21/13121/1
authorGulsum Atici <gulsum.atici@canonical.com>
Thu, 30 Mar 2023 15:14:48 +0000 (18:14 +0300)
committerGulsum Atici <gulsum.atici@canonical.com>
Thu, 30 Mar 2023 15:14:48 +0000 (18:14 +0300)
Change-Id: Idc67bad0a10cf9c2d26d6c9f1dc1b937c4559cfd
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
osm_common/fsmongo.py
osm_common/tests/test_dbbase.py

index ff37c42..21a5d67 100644 (file)
@@ -511,7 +511,6 @@ class FsMongo(FsBase):
         self.__update_local_fs(from_path=from_path)
 
     def _update_mongo_fs(self, from_path):
-
         os_path = self.path + from_path
 
         # Obtain list of files and dirs in filesystem
@@ -554,7 +553,6 @@ class FsMongo(FsBase):
             remote_files.pop(rel_filename, None)
 
             if last_modified_date >= upload_date:
-
                 stream = None
                 fh = None
                 try:
@@ -589,7 +587,6 @@ class FsMongo(FsBase):
                 self.fs.delete(file._id)
 
     def _get_mongo_files(self, from_path=None):
-
         file_dict = {}
         file_cursor = self.fs.find(no_cursor_timeout=True, sort=[("uploadDate", -1)])
         for file in file_cursor:
index 117350e..133cb05 100644 (file)
@@ -124,10 +124,6 @@ class TestEncryption(unittest.TestCase):
         TEST = (
             ("plain text 1 ! ", None),
             ("plain text 2 with salt ! ", "1afd5d1a-4a7e-4d9c-8c65-251290183106"),
-            ("plain text 3 with usalt ! ", u"1afd5d1a-4a7e-4d9c-8c65-251290183106"),
-            (u"plain unicode 4 ! ", None),
-            (u"plain unicode 5 with salt ! ", "1a000d1a-4a7e-4d9c-8c65-251290183106"),
-            (u"plain unicode 6 with usalt ! ", u"1abcdd1a-4a7e-4d9c-8c65-251290183106"),
         )
         for db_base in self.db_bases:
             for value, salt in TEST: