Merge lp:~alecu/ubuntu-sso-client/broken-signals-questionmark into lp:ubuntu-sso-client

Proposed by Alejandro J. Cura
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 724
Merged at revision: 722
Proposed branch: lp:~alecu/ubuntu-sso-client/broken-signals-questionmark
Merge into: lp:ubuntu-sso-client
Diff against target: 27 lines (+8/-1)
1 file modified
ubuntu_sso/qt/tests/show_gui.py (+8/-1)
To merge this branch: bzr merge lp:~alecu/ubuntu-sso-client/broken-signals-questionmark
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
Manuel de la Peña (community) Approve
Review via email: mp+65620@code.launchpad.net

Commit message

Register to signals and print result value

Description of the change

Register to signals and print result value

To post a comment you must log in.
Revision history for this message
Manuel de la Peña (mandel) :
review: Approve
Revision history for this message
Natalia Bidart (nataliabidart) :
review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (42.0 KiB)

The attempt to merge lp:~alecu/ubuntu-sso-client/broken-signals-questionmark into lp:ubuntu-sso-client failed. Below is the output from the failed tests.

Running test suite for ubuntu_sso
Xlib: extension "RANDR" missing on display ":99".
ubuntu_sso.utils.tests.test_ui
  GetPasswordStrengTestCase
    test_eight_chars_and_num ... [OK]
    test_eight_chars_low_and_cap ... [OK]
    test_eight_chars_low_canp_num ... [OK]
    test_eight_chars_password ... [OK]
    test_eiqgh_chars_and_special ... [OK]
    test_eleven_chars_and_num ... [OK]
    test_eleven_chars_low_cap ... [OK]
    test_eleven_num_low_cap ... [OK]
    test_eleven_num_special ... [OK]
    test_long_password ... [OK]
    test_small_password ... [OK]
    test_too_small_password ... [OK]
  IsCorrectEmailAddress
    test_is_correct_email_false ... [OK]
    test_is_correct_email_true ... [OK]
  IsMinRequiredPasswordTestCase
    test_correct_password ... [OK]
    test_no_enough_chars ... [OK]
    test_no_number ... [OK]
    test_no_uppercase ... [OK]
ubuntu_sso.utils.tests.test_txsecrets
  AltItemTestCase
    test_create_item_four_fields_per_secret ... [OK]
    test_get_value_four_fields_per_secret ... [OK]
  BaseTestCase
    runTest ... [OK]
  CollectionTestCase
    test_create_item ... [OK]
    test_create_item_prompt ... [OK]
    test_create_item_prompt_dismissed ... [OK]
    test_create_item_throws_dbus_error ... [OK]
    test_get_label ... [OK]
ubuntuone.devtools.testcase
  DBusTestCase
    runTest ... [OK]
ubuntu_sso.utils.tests.test_txsecrets
  ItemTestCase
    test_delete ... [OK]
    test_delete_prompt ... [OK]
    test_delete_prompt_dismissed ... [OK]
    test_delete_throws_dbus_error ... [OK]
    test_get_value ... [OK]
    test_get_value_throws_dbus_error ... [OK]
  SecretServiceTe...

Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (42.0 KiB)

The attempt to merge lp:~alecu/ubuntu-sso-client/broken-signals-questionmark into lp:ubuntu-sso-client failed. Below is the output from the failed tests.

Running test suite for ubuntu_sso
Xlib: extension "RANDR" missing on display ":99".
ubuntu_sso.utils.tests.test_ui
  GetPasswordStrengTestCase
    test_eight_chars_and_num ... [OK]
    test_eight_chars_low_and_cap ... [OK]
    test_eight_chars_low_canp_num ... [OK]
    test_eight_chars_password ... [OK]
    test_eiqgh_chars_and_special ... [OK]
    test_eleven_chars_and_num ... [OK]
    test_eleven_chars_low_cap ... [OK]
    test_eleven_num_low_cap ... [OK]
    test_eleven_num_special ... [OK]
    test_long_password ... [OK]
    test_small_password ... [OK]
    test_too_small_password ... [OK]
  IsCorrectEmailAddress
    test_is_correct_email_false ... [OK]
    test_is_correct_email_true ... [OK]
  IsMinRequiredPasswordTestCase
    test_correct_password ... [OK]
    test_no_enough_chars ... [OK]
    test_no_number ... [OK]
    test_no_uppercase ... [OK]
ubuntu_sso.utils.tests.test_txsecrets
  AltItemTestCase
    test_create_item_four_fields_per_secret ... [OK]
    test_get_value_four_fields_per_secret ... [OK]
  BaseTestCase
    runTest ... [OK]
  CollectionTestCase
    test_create_item ... [OK]
    test_create_item_prompt ... [OK]
    test_create_item_prompt_dismissed ... [OK]
    test_create_item_throws_dbus_error ... [OK]
    test_get_label ... [OK]
ubuntuone.devtools.testcase
  DBusTestCase
    runTest ... [OK]
ubuntu_sso.utils.tests.test_txsecrets
  ItemTestCase
    test_delete ... [OK]
    test_delete_prompt ... [OK]
    test_delete_prompt_dismissed ... [OK]
    test_delete_throws_dbus_error ... [OK]
    test_get_value ... [OK]
    test_get_value_throws_dbus_error ... [OK]
  SecretServiceTe...

724. By Alejandro J. Cura

fix lint errors

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu_sso/qt/tests/show_gui.py'
2--- ubuntu_sso/qt/tests/show_gui.py 2011-04-02 11:23:06 +0000
3+++ ubuntu_sso/qt/tests/show_gui.py 2011-06-23 16:00:34 +0000
4@@ -23,15 +23,22 @@
5 from twisted.internet.defer import inlineCallbacks
6 from ubuntu_sso.main.windows import UbuntuSSOClient
7
8+def found(*args):
9+ """The credentials were found."""
10+ print "creds found", args
11+ reactor.stop()
12
13 @inlineCallbacks
14 def main():
15 """Perform a client request to be logged in."""
16 client = UbuntuSSOClient()
17 client = yield client.connect()
18- yield client.sso_cred.login_or_register_to_get_credentials('test',
19+ client.sso_cred.on_credentials_found_cb = found
20+ yield client.sso_cred.register_to_signals()
21+ yield client.sso_cred.login_or_register_to_get_credentials('Ubuntu One',
22 'http://www.google.com',
23 'This is a test.', 0)
24+ print "called ok"
25
26 if __name__ == '__main__':
27 main()

Subscribers

People subscribed via source and target branches