This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,9 +225,11 @@ def test_casing_of_urls_survives(self): | |
self.make_participant('alice', claimed_time='now', email_address='', last_paypal_result='') | ||
self.post_new(dict( self.valid_data | ||
, homepage='Http://gratipay.com/' | ||
, onboarding_url='http://INSIDE.GRATipay.com/' | ||
)) | ||
team = T('gratiteam') | ||
assert team.homepage == 'Http://gratipay.com/' | ||
assert team.onboarding_url == 'http://INSIDE.GRATipay.com/' | ||
|
||
def test_casing_of_slug_survives(self): | ||
self.make_participant('alice', claimed_time='now', email_address='', last_paypal_result='') | ||
|
@@ -284,6 +286,9 @@ def test_error_message_for_bad_url(self): | |
r = self.post_new(dict(self.valid_data, homepage='foo'), expected=400) | ||
assert self.db.one("SELECT COUNT(*) FROM teams") == 0 | ||
assert "Please enter an http[s]:// URL for the 'Homepage' field." in r.body | ||
|
||
r = self.post_new(dict(self.valid_data, onboarding_url='foo'), expected=400) | ||
assert "an http[s]:// URL for the 'Self-onboarding Documentation URL' field." in r.body | ||
|
||
def test_error_message_for_invalid_team_name(self): | ||
self.make_participant('alice', claimed_time='now', email_address='[email protected]', last_paypal_result='') | ||
|