=== 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:35:21 +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.
+
+ If a wiki part with ``name`` is not found, the same ``properties`` are
+ returned.
+
+ Keyword arguments:
+ ``name`` -- the name of the part to query from the wiki
+ ``properties`` -- the current set of properties
+ '''
self._fetch()
wiki_properties = self.wiki_parts.get(name, {})