Mercurial > hg > CommitWatcher
changeset 11:546695da018c
commitwatcher/agent.py tests/unit.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 28 Sep 2013 05:15:59 -0700 |
parents | 7ae60d2ff1c2 |
children | a0ff003319ec |
files | commitwatcher/agent.py tests/unit.py |
diffstat | 2 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/commitwatcher/agent.py Sat Sep 28 05:10:14 2013 -0700 +++ b/commitwatcher/agent.py Sat Sep 28 05:15:59 2013 -0700 @@ -3,6 +3,7 @@ """ import feedparser +import pypatch from abc import abstractmethod from .commit import Commit from .store import MemoryStore @@ -48,6 +49,10 @@ class FeedAgentDiff(FeedAgent): """read files from diff""" + @staticmethod + def lsdiff(diff): + + def diff_url(self, link): """ returns diff_url from revision link:
--- a/tests/unit.py Sat Sep 28 05:10:14 2013 -0700 +++ b/tests/unit.py Sat Sep 28 05:15:59 2013 -0700 @@ -8,13 +8,17 @@ import sys import unittest +from commitwatcher import FeedAgentDiff + # globals here = os.path.dirname(os.path.abspath(__file__)) -class commitwatcherUnitTest(unittest.TestCase): +class CommitWatcherUnitTest(unittest.TestCase): - def test_commitwatcher(self): - pass + def test_patch(self): + """test parsing the files from a patch""" + + files = if __name__ == '__main__': unittest.main()