~james-w/udd/management-commands

« back to all changes in this revision

Viewing changes to udd/tests/test_list_packages.py

  • Committer: James Westby
  • Date: 2011-12-13 21:09:23 UTC
  • mfrom: (557.1.1 drop_email_failures)
  • Revision ID: james.westby@canonical.com-20111213210923-tfrirlx3xbwmi70u
Merged drop_email_failures into management-commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from udd import (
 
2
    iconfig,
 
3
    tests,
 
4
    )
 
5
 
 
6
from udd.scripts import list_packages
 
7
 
 
8
 
 
9
class TestListPackages(tests.TestCaseWithConfig):
 
10
 
 
11
    def test_empty(self):
 
12
        # FIXME: this query the real launchpad which we can't afford as it's
 
13
        # too long for testing -- vila 2011-12-09
 
14
        raise self.skip("Needs a faked launchpad"
 
15
                        " or a severely reduced selection")
 
16
        # Nevertheless, I've completed a succesful run of this test which
 
17
        # created > 11.500 requests to lp (observed in the /tmp dir used for
 
18
        # caching the responses), created a > 7M packages.db and took > 4 hours
 
19
        # (which first triggered the new bzr alarm protection against hung
 
20
        # tests which I overrided in bazaar.conf with selftest.timeout =
 
21
        # 60000), pfew, not a test you want (nor can) run repeatedly :-/ --
 
22
        # vila 2011-12-09
 
23
        list_packages.main()
 
24
        # A lock has been created under the test hierarchy
 
25
        self.assertTestPathExists('locks/scripts/list_packages')
 
26