~mvo/software-center/purchaseviewspinner

« back to all changes in this revision

Viewing changes to test/fake_review_settings.py

  • Committer: Aaron Peachey
  • Date: 2011-06-03 06:08:15 UTC
  • mto: (1839.2.1 trunk) (1805.1.26 tests)
  • mto: This revision was merged to the branch mainline in revision 1861.
  • Revision ID: alpeachey@gmail.com-20110603060815-lq077p1ralhunt8g
create a fake get_usefulness() response and 
create a shortcut shell script to run in fake mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
    #*****************************
62
62
    #raises APIError if True
63
63
    get_usefulness_error = False
 
64
    
 
65
    #the following has no effect if get_usefulness_error = True
 
66
    #how many usefulness votes to return
 
67
    votes_returned = 5
 
68
    
 
69
    #pre-configured review ids to return in the result 
 
70
    #if you don't complete this or enter less review ids than votes_returned
 
71
    #above, it will be random
 
72
    required_review_ids = [3,6,15]