~mvo/software-center/lp967036

« back to all changes in this revision

Viewing changes to test/create_transactions.py

  • Committer: Michael Vogt
  • Date: 2009-08-17 12:56:19 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090817125619-pnbjepduwpk9s661
test/create_transactions.py:
- add helper to create a bunch of transactions to test the pending view
AppCenter/AppCenter.py:
- make switching to the pending view possible
AppCenter/view/viewswitcher.py:
- fix updating of the pending view

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import time
 
4
from aptdaemon.client import AptClient
 
5
 
 
6
c = AptClient()
 
7
for i in range(100):
 
8
    t = c.commit_packages(["3dchess"], [], [], [], [], exit_handler=lambda x, y: True)
 
9
    t.run(block=False)
 
10
    t = c.commit_packages([], [], ["3dchess"], [], [], exit_handler=lambda x, y: True)
 
11
    t.run(block=False)
 
12
 
 
13
    time.sleep(5)
 
14