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.
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
1=== modified file 'tests/gtk3/test_purchase.py'
2--- tests/gtk3/test_purchase.py 2012-06-28 08:51:44 +0000
3+++ tests/gtk3/test_purchase.py 2012-08-14 17:01:26 +0000
4@@ -59,8 +59,7 @@
5 view = win.get_data("view")
6 # install the mock
7 mock_config = Mock()
8- mock_config.has_option.return_value = False
9- mock_config.getboolean.return_value = False
10+ mock_config.user_accepted_tos = False
11 view.config = mock_config
12 func = "softwarecenter.ui.gtk3.views.purchaseview.show_accept_tos_dialog"
13 with patch(func) as mock_func:

Subscribers

People subscribed via source and target branches