=== 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, {})