Merge lp:~mvo/software-center/add-pyflakes-as-part-of-the-tests into lp:software-center

Proposed by Michael Vogt
Status: Merged
Merged at revision: 2674
Proposed branch: lp:~mvo/software-center/add-pyflakes-as-part-of-the-tests
Merge into: lp:software-center
Diff against target: 20 lines (+16/-0)
1 file modified
test/test_pyflakes.py (+16/-0)
To merge this branch: bzr merge lp:~mvo/software-center/add-pyflakes-as-part-of-the-tests
Reviewer Review Type Date Requested Status
Michael Nelson Approve
Review via email: mp+89028@code.launchpad.net

Description of the change

Trivial branch that adds pyflakes to the tests so that its a one-stop "make" instead of a seperate pyflakes run.

To post a comment you must log in.
Revision history for this message
Michael Nelson (michael.nelson) wrote :

Sweet!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'test/test_pyflakes.py'
2--- test/test_pyflakes.py 1970-01-01 00:00:00 +0000
3+++ test/test_pyflakes.py 2012-01-18 13:21:23 +0000
4@@ -0,0 +1,16 @@
5+#!/usr/bin/python
6+
7+import subprocess
8+import unittest
9+
10+class TestPyflakesClean(unittest.TestCase):
11+ """ ensure that the tree is pyflakes clean """
12+
13+ def test_pyflakes_clean(self):
14+ self.assertEqual(subprocess.call(["pyflakes",".."]), 0)
15+
16+
17+if __name__ == "__main__":
18+ import logging
19+ logging.basicConfig(level=logging.DEBUG)
20+ unittest.main()

Subscribers

People subscribed via source and target branches