summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authoradityacp2020-11-03 17:52:24 +0530
committeradityacp2020-11-03 17:54:33 +0530
commitaef2589eadaf7f3252e281286ab1bb83e690ba6a (patch)
tree1764959aca48f835be56c0819cddd286aeb8b4df /yaksh/test_views.py
parent167b53a673630c4243c5d82a5966797213a5fa28 (diff)
parent81f96a24954d375ab32ab8dfb1ee8aba299655c6 (diff)
downloadonline_test-aef2589eadaf7f3252e281286ab1bb83e690ba6a.tar.gz
online_test-aef2589eadaf7f3252e281286ab1bb83e690ba6a.tar.bz2
online_test-aef2589eadaf7f3252e281286ab1bb83e690ba6a.zip
Resolve conflicts
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index 2db217f..4351a66 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -6728,20 +6728,6 @@ class TestLessons(TestCase):
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context["msg"], err_msg)
- def test_preview_lesson_description(self):
- """ Test preview lesson description converted from md to html"""
- self.client.login(
- username=self.teacher.username,
- password=self.teacher_plaintext_pass
- )
- lesson = json.dumps({'description': self.lesson.description})
- response = self.client.post(
- reverse('yaksh:preview_html_text'),
- data=lesson, content_type="application/json"
- )
- self.assertEqual(response.status_code, 200)
- self.assertEqual(response.json()['data'], '<p>test description</p>')
-
class TestPost(TestCase):
def setUp(self):