Ubuntu Pastebin

Paste from sergiusens at Thu, 15 Oct 2015 16:52:29 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
=== modified file 'runtests.sh'
--- runtests.sh	2015-10-02 14:28:48 +0000
+++ runtests.sh	2015-10-14 21:15:11 +0000
@@ -68,7 +68,7 @@
 
     if which python3-coverage >/dev/null 2>&1; then
         python3-coverage erase
-        python3-coverage run --branch --source snapcraft -m unittest
+        python3-coverage run --branch --source snapcraft --omit 'snapcraft/tests/*' -m unittest
         mv .coverage .coverage.unit
     else
         python3 -m unittest

=== modified file 'snapcraft/wiki.py'
--- snapcraft/wiki.py	2015-10-14 23:15:41 +0000
+++ snapcraft/wiki.py	2015-10-15 16:52:18 +0000
@@ -51,6 +51,15 @@
             return self.wiki_parts[name]
 
     def compose(self, name, properties):
+        """Return properties composed from part name in the wiki and properties.
+
+        :param str name: The name of the part to query from the wiki
+        :param dict properties: The current set of properties
+        :return: Part properties from the wiki composed with the properties
+                 passed as a parameter. If there is no wiki part named name,
+                 properties will be returned.
+        :rtype: dict
+        """
         self._fetch()
 
         wiki_properties = self.wiki_parts.get(name, {})
Download as text