~ubuntu-branches/ubuntu/trusty/software-center/trusty

« back to all changes in this revision

Viewing changes to tests/test_pkginfo.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-12-06 17:30:50 UTC
  • Revision ID: package-import@ubuntu.com-20121206173050-n7mxi5fzlsvtdh9l
Tags: 5.5.2
* lp:~mvo/software-center/fix-pygobject-deprecation-warnings:
  - fix deprecation warninings with the latest python-gi
* lp:~mvo/software-center/minor-logging-fixes:
  - drop some LOG.info() messages to LOG.debug() to spam the user
    less
* lp:~mvo/software-center/trivial-close-ui-tweak:
  - hide the main window immediately when closing down
* lp:~mvo/software-center/5.4-fix-save-person-to-config:
  - This branch ensures that the "username" is saved everytime
    that the ubuntu sso whoami call is done
* lp:~mvo/software-center/use-dpkg-builddeps:
  - use dpkg-checkbuilddeps to find test-dependencies
* lp:~mvo/software-center/update-sc-cmdline-flexibility:
  - update-software-center-agent: 
    + add --target-db-path commandline
  - update-software-center: 
    + add --app-install-desktop-dir and --target-db-path commandline
* lp:~mvo/software-center/raring-pep8:
  - fixes for new pep8

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import time
3
3
import unittest
4
4
 
5
 
from gi.repository import GObject
 
5
from gi.repository import GLib
6
6
from mock import patch
7
7
 
8
8
from tests.utils import (
27
27
            self.sccache = get_pkg_info()
28
28
        # cache is opened with a timeout_add() in get_pkg_info()
29
29
        time.sleep(0.2)
30
 
        context = GObject.main_context_default()
 
30
        context = GLib.main_context_default()
31
31
        while context.pending():
32
32
            context.iteration()
33
33
        # compare with plain apt
45
45
        TEST_PKG = "casper"
46
46
        ADDONS_TO_INSTALL = [ "lupin-casper" ]
47
47
        ADDONS_TO_REMOVE = []
48
 
        loop =  GObject.MainLoop(GObject.main_context_default())
 
48
        loop =  GLib.MainLoop(GLib.main_context_default())
49
49
        cache = get_test_pkg_info()
50
50
        cache.connect(
51
51
            "query-total-size-on-install-done",