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 308
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
1 parent
7665606
commit ab63da0
Showing
11 changed files
with
16 additions
and
38 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
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
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--https://github.com/gratipay/gratipay.com/pull/4214 | ||
|
||
BEGIN; | ||
ALTER TABLE teams DROP COLUMN todo_url; | ||
END; |
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
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 |
---|---|---|
|
@@ -170,7 +170,6 @@ class TestTeams(Harness): | |
'product_or_service': 'We make widgets.', | ||
'homepage': 'http://gratipay.com/', | ||
'onboarding_url': 'http://inside.gratipay.com/', | ||
'todo_url': 'https://github.com/gratipay', | ||
'agree_public': 'true', | ||
'agree_payroll': 'true', | ||
'agree_terms': 'true', | ||
|
@@ -227,12 +226,10 @@ def test_casing_of_urls_survives(self): | |
self.post_new(dict( self.valid_data | ||
, homepage='Http://gratipay.com/' | ||
, onboarding_url='http://INSIDE.GRATipay.com/' | ||
, todo_url='hTTPS://github.com/GRATIPAY' | ||
)) | ||
team = T('gratiteam') | ||
assert team.homepage == 'Http://gratipay.com/' | ||
assert team.onboarding_url == 'http://INSIDE.GRATipay.com/' | ||
assert team.todo_url == 'hTTPS://github.com/GRATIPAY' | ||
|
||
def test_casing_of_slug_survives(self): | ||
self.make_participant('alice', claimed_time='now', email_address='', last_paypal_result='') | ||
|
@@ -301,9 +298,6 @@ def test_error_message_for_bad_url(self): | |
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 | ||
|
||
r = self.post_new(dict(self.valid_data, todo_url='foo'), expected=400) | ||
assert "Please enter an http[s]:// URL for the 'To-do 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='') | ||
data = dict(self.valid_data) | ||
|
@@ -451,7 +445,6 @@ def test_update_works(self): | |
'product_or_service': 'We save galaxies.', | ||
'homepage': 'http://starwars-enterprise.com/', | ||
'onboarding_url': 'http://starwars-enterprise.com/onboarding', | ||
'todo_url': 'http://starwars-enterprise.com/todos', | ||
} | ||
team.update(**update_data) | ||
team = T('enterprise') | ||
|
@@ -460,7 +453,7 @@ def test_update_works(self): | |
|
||
def test_can_only_update_allowed_fields(self): | ||
allowed_fields = set(['name', 'product_or_service', 'homepage', | ||
'onboarding_url', 'todo_url']) | ||
'onboarding_url',]) | ||
|
||
team = self.make_team(slug='enterprise') | ||
|
||
|
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
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
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
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
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