Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Make PayPal ID textfield longer (bug 621625)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Feb 12, 2011
1 parent 80d747a commit 0fe6785
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/devhub/forms.py
Expand Up @@ -220,6 +220,7 @@ class Meta:
widgets = {
'annoying': forms.RadioSelect(),
'suggested_amount': forms.TextInput(attrs={'class': 'short'}),
'paypal_id': forms.TextInput(attrs={'size':'50'})
}

@staticmethod
Expand Down
5 changes: 5 additions & 0 deletions apps/devhub/tests/test_views.py
Expand Up @@ -707,6 +707,11 @@ def test_success_charity(self):
self.check(paypal_id='', suggested_amount=Decimal('11.50'),
charity=Charity.objects.get(name='fligtar fund'))

def test_dev_paypal_id_length(self):
r = self.client.get(self.url)
doc = pq(self.client.get(self.url).content)
eq_(int(doc('#id_paypal_id').attr('size')), 50)

def test_dev_paypal_reqd(self):
d = dict(recipient='dev', suggested_amount=2,
annoying=amo.CONTRIB_PASSIVE)
Expand Down

0 comments on commit 0fe6785

Please sign in to comment.