Fixing broken unit tests related to new subscription code.
This commit is contained in:
parent
9b7d9ef184
commit
919ae6c041
2
NEWS
2
NEWS
|
@ -1,5 +1,5 @@
|
||||||
1.5.13: January ??, 2009
|
1.5.13: January ??, 2009
|
||||||
* Fixed various bugs related to online subscription processing.
|
* Fixed various bugs related to the subscription page.
|
||||||
|
|
||||||
1.5.12: December 30, 2008
|
1.5.12: December 30, 2008
|
||||||
* Fixed a bug in which clicking on the notebook rename text field ended the
|
* Fixed a bug in which clicking on the notebook rename text field ended the
|
||||||
|
|
|
@ -80,8 +80,8 @@ class Test_controller( object ):
|
||||||
u"included_users": 1,
|
u"included_users": 1,
|
||||||
u"fee": 1.99,
|
u"fee": 1.99,
|
||||||
u"yearly_fee": 19.90,
|
u"yearly_fee": 19.90,
|
||||||
u"button": u"[subscribe here user %s!] button",
|
u"button": u"[subscribe here user %s!] button (modify=%s)",
|
||||||
u"yearly_button": u"[yearly subscribe here user %s!] button",
|
u"yearly_button": u"[yearly subscribe here user %s!] button (modify=%s)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
u"name": "extra super",
|
u"name": "extra super",
|
||||||
|
@ -91,8 +91,8 @@ class Test_controller( object ):
|
||||||
u"included_users": 3,
|
u"included_users": 3,
|
||||||
u"fee": 9.00,
|
u"fee": 9.00,
|
||||||
u"yearly_fee": 90.00,
|
u"yearly_fee": 90.00,
|
||||||
u"button": u"[or here user %s!] button",
|
u"button": u"[or here user %s!] button (modify=%s)",
|
||||||
u"yearly_button": u"[yearly or here user %s!] button",
|
u"yearly_button": u"[yearly or here user %s!] button (modify=%s)",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"luminotes.download_products": [
|
"luminotes.download_products": [
|
||||||
|
|
|
@ -542,7 +542,7 @@ class Test_users( Test_controller ):
|
||||||
form = result.get( u"form" )
|
form = result.get( u"form" )
|
||||||
plan = self.settings[ u"global" ][ u"luminotes.rate_plans" ][ 1 ]
|
plan = self.settings[ u"global" ][ u"luminotes.rate_plans" ][ 1 ]
|
||||||
|
|
||||||
assert form == plan[ u"button" ] % self.user.object_id
|
assert form == plan[ u"button" ] % ( self.user.object_id, 0 )
|
||||||
|
|
||||||
def test_subscribe_yearly( self ):
|
def test_subscribe_yearly( self ):
|
||||||
self.login()
|
self.login()
|
||||||
|
@ -555,7 +555,7 @@ class Test_users( Test_controller ):
|
||||||
form = result.get( u"form" )
|
form = result.get( u"form" )
|
||||||
plan = self.settings[ u"global" ][ u"luminotes.rate_plans" ][ 1 ]
|
plan = self.settings[ u"global" ][ u"luminotes.rate_plans" ][ 1 ]
|
||||||
|
|
||||||
assert form == plan[ u"yearly_button" ] % self.user.object_id
|
assert form == plan[ u"yearly_button" ] % ( self.user.object_id, 0 )
|
||||||
|
|
||||||
def test_subscribe_with_free_rate_plan( self ):
|
def test_subscribe_with_free_rate_plan( self ):
|
||||||
self.login()
|
self.login()
|
||||||
|
@ -4999,7 +4999,7 @@ class Test_users( Test_controller ):
|
||||||
assert result[ u"notes" ][ 0 ].title == u"thank you"
|
assert result[ u"notes" ][ 0 ].title == u"thank you"
|
||||||
assert result[ u"notes" ][ 0 ].notebook_id == self.anon_notebook.object_id
|
assert result[ u"notes" ][ 0 ].notebook_id == self.anon_notebook.object_id
|
||||||
assert u"Thank you" in result[ u"notes" ][ 0 ].contents
|
assert u"Thank you" in result[ u"notes" ][ 0 ].contents
|
||||||
assert u"confirmation" in result[ u"notes" ][ 0 ].contents
|
assert u"confirmation" not in result[ u"notes" ][ 0 ].contents
|
||||||
|
|
||||||
def test_thanks_download( self ):
|
def test_thanks_download( self ):
|
||||||
access_id = u"wheeaccessid"
|
access_id = u"wheeaccessid"
|
||||||
|
|
Reference in New Issue