Ubuntu Pastebin

Paste from sergiusens at Thu, 15 Oct 2015 16:18:35 +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
=== 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:17:37 +0000
@@ -51,6 +51,11 @@
             return self.wiki_parts[name]
 
     def compose(self, name, properties):
+        '''Returns the composition of the parts properties from name
+        and composes them into properties.
+
+        If there is no wiki part with name, the same properties are returned.
+        '''
         self._fetch()
 
         wiki_properties = self.wiki_parts.get(name, {})
Download as text