diff --git a/server/books/tests/test_chapter.py b/server/books/tests/test_chapter.py index 3d1e45fb..3d424122 100644 --- a/server/books/tests/test_chapter.py +++ b/server/books/tests/test_chapter.py @@ -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) - -