Merge lp:~gary-lasker/software-center/fix-purchaseview-test into lp:software-center

Proposed by Gary Lasker
Status: Merged
Merged at revision: 3088
Proposed branch: lp:~gary-lasker/software-center/fix-purchaseview-test
Merge into: lp:software-center
Diff against target: 13 lines (+1/-2)
1 file modified
tests/gtk3/test_purchase.py (+1/-2)
To merge this branch: bzr merge lp:~gary-lasker/software-center/fix-purchaseview-test
Reviewer Review Type Date Requested Status
Michael Vogt Approve
Review via email: mp+119590@code.launchpad.net

Commit message

 * lp:~gary-lasker/software-center/fix-purchaseview-test:
   - fix the purchase view unit test to conform to the new config
     code

Description of the change

A small branch to fix the purchase view unit test (tests/gtk3/test_purchase.py). This is needed after the recent cleanup in our config code.

Thanks!

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/gtk3/test_purchase.py'
--- tests/gtk3/test_purchase.py 2012-06-28 08:51:44 +0000
+++ tests/gtk3/test_purchase.py 2012-08-14 17:01:26 +0000
@@ -59,8 +59,7 @@
59 view = win.get_data("view")59 view = win.get_data("view")
60 # install the mock60 # install the mock
61 mock_config = Mock()61 mock_config = Mock()
62 mock_config.has_option.return_value = False62 mock_config.user_accepted_tos = False
63 mock_config.getboolean.return_value = False
64 view.config = mock_config63 view.config = mock_config
65 func = "softwarecenter.ui.gtk3.views.purchaseview.show_accept_tos_dialog"64 func = "softwarecenter.ui.gtk3.views.purchaseview.show_accept_tos_dialog"
66 with patch(func) as mock_func:65 with patch(func) as mock_func:

Subscribers

People subscribed via source and target branches