Skip to content
This repository
Browse code

Fixed test_add_edit_plugin. Test wasn't properly testing the cancel b…

…utton functionality due to the wrong URL
  • Loading branch information...
commit 5e1fa57a49531d171c8b13165e4b8467888b6992 1 parent 9f322fa
Ioan Alexandru Cucu kux authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  cms/tests/plugins.py
3  cms/tests/plugins.py
@@ -119,7 +119,8 @@ def test_add_edit_plugin(self):
119 119 "body":"Hello World!!",
120 120 "_cancel":True,
121 121 }
122   - response = self.client.post(URL_CMS_PAGE_ADD, data)
  122 + edit_url = '%s%d/' % (URL_CMS_PLUGIN_EDIT, created_plugin_id)
  123 + response = self.client.post(edit_url, data)
123 124 self.assertEquals(response.status_code, 200)
124 125 txt = Text.objects.all()[0]
125 126 self.assertEquals("Hello World", txt.body)

0 comments on commit 5e1fa57

Please sign in to comment.
Something went wrong with that request. Please try again.