Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 with 2 additions and 1 deletion.
  1. +2 −1  cms/tests/plugins.py
3  cms/tests/plugins.py
View
@@ -119,7 +119,8 @@ def test_add_edit_plugin(self):
"body":"Hello World!!",
"_cancel":True,
}
- response = self.client.post(URL_CMS_PAGE_ADD, data)
+ edit_url = '%s%d/' % (URL_CMS_PLUGIN_EDIT, created_plugin_id)
+ response = self.client.post(edit_url, data)
self.assertEquals(response.status_code, 200)
txt = Text.objects.all()[0]
self.assertEquals("Hello World", txt.body)
Please sign in to comment.
Something went wrong with that request. Please try again.