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
Revise the New Project form #4130
Merged
Merged
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
54c4944
Stub out new project form.
mattbk 016f439
Drop onboarding and payroll fields from /new
mattbk b8bca83
Fix up test suite
chadwhitacre 56f7356
Smooth over the new project form
chadwhitacre 9c68f9e
Add onboarding_url back in.
mattbk 0ec6ee9
Tweak application copy a bit
chadwhitacre f3ecd05
Add onboarding tests again.
mattbk d1284b8
Revert "Add onboarding tests again."
mattbk d7007e3
Revert "Add onboarding_url back in."
mattbk 32f9515
Remove onboarding links and editing from project page.
mattbk 792d759
Fix homepage if.
mattbk b9f3f99
Update the edit form to match the application
chadwhitacre 5f25219
Fix formatting in test_team_edit
chadwhitacre 102ab69
Remove onboarding_url from test_team_edit
chadwhitacre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now the same as
field in 'homepage'
because of the way parens work in Python (without a comma they're used for grouping, with a comma they make a tuple). Probably should rework to just be iffield == 'homepage'
.