[pitivi] Fix pylint unpacking-non-sequence



commit c1fadbf0457cfa6655a063f410407f619367ca67
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sat Nov 2 23:43:12 2019 +0100

    Fix pylint unpacking-non-sequence

 pre-commit.hook       | 1 -
 tests/test_project.py | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pre-commit.hook b/pre-commit.hook
index 0e0fb3f5..78d9fa98 100755
--- a/pre-commit.hook
+++ b/pre-commit.hook
@@ -17,7 +17,6 @@ pitivi/autoaligner.py
 pitivi/medialibrary.py
 pitivi/utils/extract.py
 pitivi/utils/loggable.py
-tests/test_project.py
 "
 
 PYLINT_IGNORE_ARGS=""
diff --git a/tests/test_project.py b/tests/test_project.py
index f0af3ada..43e7f3fc 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -423,7 +423,7 @@ class TestProjectLoading(common.TestCase):
                 asset = medialib.storemodel[0][medialibrary.COL_ASSET]
                 app.project_manager.current_project.disable_proxies_for_assets([asset])
 
-            row, = medialib.storemodel
+            row = medialib.storemodel[0]
             asset = row[medialibrary.COL_ASSET]
             self.assertEqual(medialib._progressbar.get_fraction(), 1.0)
             uri = common.get_sample_uri("1sec_simpsons_trailer.mp4")
@@ -436,7 +436,7 @@ class TestProjectLoading(common.TestCase):
             app.project_manager.current_project.use_proxies_for_assets([asset])
             mainloop.run()
 
-        row, = medialib.storemodel
+        row = medialib.storemodel[0]
         asset = row[medialibrary.COL_ASSET]
         self.assertEqual(medialib._progressbar.is_visible(), False)
         self.assertEqual(asset.props.id, proxy_uri)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]