Skip to content

Commit

Permalink
Remove the "We are now getting the people from popit" message
Browse files Browse the repository at this point in the history
We don’t need to give a separate flash message about getting people, as
we already have the one that says that we’re actively pulling people.
  • Loading branch information
tmtmtmtm committed Apr 15, 2015
1 parent 51680db commit 414f7bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions nuntium/user_section/tests/popit_instance_update_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,19 +187,6 @@ def test_post_to_the_url_shows_includes_something_about_the_result(self):
self.assertTrue(messages)
self.assertEquals(messages[0].message, _('We could not connect with the URL'))

def test_insights_about_pulling_popit_even_if_everything_goes_ok(self):
'''Return some insights even if everything goes ok'''
self.client.login(username="fieraferoz", password="feroz")
url = reverse('relate-writeit-popit', subdomain=self.writeitinstance.slug)
data = self.data
response = self.client.post(url, data=data)
expected_follow_url = reverse('relate-writeit-popit', subdomain=self.writeitinstance.slug)
self.assertRedirects(response, expected_follow_url)
response = self.client.get(expected_follow_url)
messages = list(response.context['messages'])
self.assertTrue(messages)
self.assertEquals(messages[0].message, _("We are now getting the people from popit"))

def test_get_the_url(self):
form = RelatePopitInstanceWithWriteItInstance(data=self.data, writeitinstance=self.writeitinstance)
form.is_valid()
Expand Down
1 change: 0 additions & 1 deletion nuntium/user_section/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ def form_valid(self, form):
form.relate()
# It returns an AsyncResult http://celery.readthedocs.org/en/latest/reference/celery.result.html
# that we could use for future information about this process
view_messages.add_message(self.request, view_messages.INFO, _("We are now getting the people from popit"))
return super(WriteitPopitRelatingView, self).form_valid(form)

def get_context_data(self, **kwargs):
Expand Down

0 comments on commit 414f7bd

Please sign in to comment.