[gtk-doc] common: add another test
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] common: add another test
- Date: Thu, 13 Apr 2017 20:25:54 +0000 (UTC)
commit 803586a9862296e1929c116c3b5af62860cb77be
Author: Stefan Sauer <ensonic users sf net>
Date: Thu Apr 13 21:33:03 2017 +0200
common: add another test
tests/gtkdoc-common.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/gtkdoc-common.py b/tests/gtkdoc-common.py
index ee3a1ac..6f5969a 100755
--- a/tests/gtkdoc-common.py
+++ b/tests/gtkdoc-common.py
@@ -17,6 +17,14 @@ class TestUpdateFileIfChanged(unittest.TestCase):
self.assertTrue(res)
+class TestGetModuleDocDir(unittest.TestCase):
+
+ @mock.patch('subprocess.check_output')
+ def test_ReturnsPath(self, subprocess_check_output):
+ subprocess_check_output.return_value = '/usr'
+ self.assertEquals(common.GetModuleDocDir('glib-2.0'), '/usr/share/gtk-doc/html')
+
+
class TestCreateValidSGMLID(unittest.TestCase):
def test_AlreadyValid(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]