[pitivi] tests_: Docstrings



commit ef8719b62f5a570bf8756ff723ad6c6102d38a81
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Dec 13 13:21:20 2016 +0100

    tests_: Docstrings
    
    Reviewed-by: Thibault Saunier <tsaunier gnome org>
    Differential Revision: https://phabricator.freedesktop.org/D1551

 pre-commit.hook        |    1 -
 tests/test_pipeline.py |    5 +++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pre-commit.hook b/pre-commit.hook
index fbe35ff..f542037 100755
--- a/pre-commit.hook
+++ b/pre-commit.hook
@@ -55,7 +55,6 @@ tests/test_common.py
 tests/test_log.py
 tests/test_media_library.py
 tests/test_misc.py
-tests/test_pipeline.py
 tests/test_prefs.py
 tests/test_preset.py
 tests/test_previewers.py
diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py
index 1b9d319..3997749 100644
--- a/tests/test_pipeline.py
+++ b/tests/test_pipeline.py
@@ -16,6 +16,8 @@
 # License along with this program; if not, write to the
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
+"""Tests for the utils.pipeline module."""
+# pylint: disable=protected-access,no-self-use
 from unittest import mock
 
 from gi.repository import GES
@@ -28,9 +30,11 @@ from tests import common
 
 
 class TestPipeline(common.TestCase):
+    """Tests for the Pipeline class."""
 
     @staticmethod
     def post_fake_error_message(pipeline):
+        """Simulates an error message on the specified Pipeline."""
         message = mock.Mock()
         message.type = Gst.MessageType.ERROR
         error = GLib.Error.new_literal(Gst.core_error_quark(),
@@ -39,6 +43,7 @@ class TestPipeline(common.TestCase):
         pipeline._busMessageCb(None, message)
 
     def test_recovery(self):
+        """Checks the recovery mechanism."""
         pipe = Pipeline(common.create_pitivi_mock())
         pipe.set_timeline(GES.Timeline())
 


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