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.
* Stub out new project form. * Drop onboarding and payroll fields from /new Still able to create new team. * Fix up test suite * Add onboarding_url back in. * Smooth over the new project form * Tweak application copy a bit Let's see if we can stop capitalizing project like we did Team. * Add onboarding tests again. * Revert "Add onboarding tests again." This reverts commit f3ecd05. * Revert "Add onboarding_url back in." This reverts commit 9c68f9e. * Remove onboarding links and editing from project page. * Fix homepage if. * Update the edit form to match the application * Fix formatting in test_team_edit * Remove onboarding_url from test_team_edit
- Loading branch information
1 parent
ab63da0
commit 53146a6
Showing
8 changed files
with
68 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,11 +225,9 @@ 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='') | ||
|
@@ -264,14 +262,6 @@ def test_error_message_for_public_review(self): | |
assert self.db.one("SELECT COUNT(*) FROM teams") == 0 | ||
assert "Sorry, you must agree to have your application publicly reviewed." in r.body | ||
|
||
def test_error_message_for_payroll(self): | ||
self.make_participant('alice', claimed_time='now', email_address='[email protected]', last_paypal_result='') | ||
data = dict(self.valid_data) | ||
del data['agree_payroll'] | ||
r = self.post_new(data, expected=400) | ||
assert self.db.one("SELECT COUNT(*) FROM teams") == 0 | ||
assert "Sorry, you must agree to be responsible for payroll." in r.body | ||
|
||
def test_error_message_for_terms(self): | ||
self.make_participant('alice', claimed_time='now', email_address='[email protected]', last_paypal_result='') | ||
data = dict(self.valid_data) | ||
|
@@ -295,9 +285,6 @@ def test_error_message_for_bad_url(self): | |
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='') | ||
data = dict(self.valid_data) | ||
|
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
Oops, something went wrong.