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

Commit

Permalink
Remove onboarding_url from test_team_edit
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Dec 9, 2016
1 parent 5f25219 commit 102ab69
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/py/test_team_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ def test_edit(self):
'name': 'Enterprise',
'product_or_service': 'We save galaxies.',
'homepage': 'http://starwars-enterprise.com/',
'onboarding_url': 'http://starwars-enterprise.com/onboarding',
'image': FileUpload(IMAGE, 'logo.png'),
}
data = json.loads(self.client.POST( '/enterprise/edit/edit.json'
Expand All @@ -255,7 +254,6 @@ def test_edit(self):
assert team.name == 'Enterprise'
assert team.product_or_service == 'We save galaxies.'
assert team.homepage == 'http://starwars-enterprise.com/'
assert team.onboarding_url == 'http://starwars-enterprise.com/onboarding'
assert team.load_image('original') == IMAGE

def test_edit_supports_partial_updates(self):
Expand All @@ -274,7 +272,6 @@ def test_edit_supports_partial_updates(self):
assert team.name == 'The Enterprise'
assert team.product_or_service == 'We save galaxies.'
assert team.homepage == 'http://starwars-enterprise.com/'
assert team.onboarding_url == ''
assert team.load_image('original') == IMAGE

def test_edit_needs_auth(self):
Expand Down Expand Up @@ -336,12 +333,12 @@ def test_can_edit_teams_under_review(self):
assert T('enterprise').name == 'Enterprise'

def test_can_only_edit_allowed_fields(self):
allowed_fields = set(['name', 'image', 'product_or_service',
'homepage', 'onboarding_url'])
allowed_fields = set(['name', 'image', 'product_or_service', 'homepage'])

team = self.make_team(slug='enterprise', is_approved=None)

fields = vars(team).keys()
fields.remove('onboarding_url') # we are still keeping this in the db for now
for field in fields:
if field not in allowed_fields:
response = self.client.POST( '/enterprise/edit/edit.json'
Expand Down Expand Up @@ -407,7 +404,6 @@ def test_edit_with_empty_data_does_nothing(self):
'name': 'Enterprise',
'product_or_service': 'We save galaxies.',
'homepage': 'http://starwars-enterprise.com/',
'onboarding_url': 'http://starwars-enterprise.com/onboarding',
}
self.make_team(**team_data)
r = self.client.POST( '/enterprise/edit/edit.json'
Expand Down

0 comments on commit 102ab69

Please sign in to comment.