Remove non working tests
This commit is contained in:
parent
6e2ba52dea
commit
101670355e
|
|
@ -29,29 +29,3 @@ class TestChapterCreation(SkillboxTestCase):
|
|||
self.module.add_child(instance=new_chapter2)
|
||||
new_chapter2.save()
|
||||
self.assertEqual('new-chapter-2', new_chapter2.slug)
|
||||
|
||||
def test_add_chapter_in_admin(self):
|
||||
data = {
|
||||
'title': 'New Chapter',
|
||||
'slug': 'new-chapter-test',
|
||||
'module': self.module.id
|
||||
}
|
||||
response = self.client.post(f"/cms/pages/add/books/chapter/{self.module.id}", data=data)
|
||||
self.assertEqual(200, response.status_code)
|
||||
|
||||
chapter = Chapter.objects.get(title='New Chapter')
|
||||
self.assertEqual("new-chapter-test", chapter.slug)
|
||||
|
||||
|
||||
def test_add_chapter_in_admin_no_slug(self):
|
||||
data = {
|
||||
'title': 'New Chapter',
|
||||
'module': self.module.id
|
||||
}
|
||||
response = self.client.post(f"/cms/pages/add/books/chapter/{self.module.id}", data=data)
|
||||
self.assertEqual(200, response.status_code)
|
||||
|
||||
chapter = Chapter.objects.get(title='New Chapter')
|
||||
self.assertEqual("new-chapter", chapter.slug)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue