Skip to content

Commit

Permalink
Merge pull request #40 from Elthan/master
Browse files Browse the repository at this point in the history
Adds missing dist folder and fixes tests which were broken
  • Loading branch information
torgeirl committed Jul 24, 2018
2 parents a3ef131 + 774a1fb commit d0495ab
Show file tree
Hide file tree
Showing 27 changed files with 12,599 additions and 5 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
'PyYAML>=3.12',
'django-extensions',
'dj-database-url>=0.5.0',
# 'django_cradmin==5.2.2',
'cradmin_legacy>=1.3.0a0',
'bleach>=2.1.3',
# 'bleach>=2.1.3',
'gunicorn',
],
classifiers=[
Expand Down
5 changes: 5 additions & 0 deletions trix/trix_core/tests/test_multiassignment_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def test_serialize_assignments_single(self):
('id: {}\n'
'title: A title\n'
'tags: []\n'
'hidden: false\n'
'text: |-\n'
' A text\n').format(assignment.id)
)
Expand All @@ -76,6 +77,7 @@ def test_serialize_assignments_single_with_tags(self):
('id: {}\n'
'title: A title\n'
'tags: [testtag, testtag2]\n'
'hidden: false\n'
'text: |-\n'
' A text\n').format(assignment.id)
)
Expand All @@ -91,6 +93,7 @@ def test_serialize_assignments_single_with_solution(self):
('id: {}\n'
'title: A title\n'
'tags: []\n'
'hidden: false\n'
'text: |-\n'
' A text\n'
'solution: |-\n'
Expand All @@ -111,12 +114,14 @@ def test_serialize_assignments_multi(self):
('id: {}\n'
'title: A1\n'
'tags: []\n'
'hidden: false\n'
'text: |-\n'
' text1\n'
'---\n'
'id: {}\n'
'title: A2\n'
'tags: []\n'
'hidden: false\n'
'text: |-\n'
' text2\n'
).format(assignment1.id, assignment2.id)
Expand Down
2 changes: 1 addition & 1 deletion trix/trix_core/tests/test_trix_core_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ class TestTrixMarkdown(TestCase):
def test_simple(self):
self.assertEquals(
trix_core_tags.trix_assignment_markdown('# Hello world\n'),
'<h1>Hello world</h1>')
'<h1>Hello world</h1>')
4 changes: 2 additions & 2 deletions trix/trix_core/tests/test_trix_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class TestTrixMarkdown(TestCase):
def test_simple(self):
self.assertEquals(
trix_markdown.assignment_markdown('# Hello world\n'),
'&lt;h1&gt;Hello world&lt;/h1&gt;')
'<h1>Hello world</h1>')

def test_nl2br(self):
self.assertEquals(
trix_markdown.assignment_markdown('Hello\nworld'),
'&lt;p&gt;Hello&lt;br&gt;\nworld&lt;/p&gt;')
'<p>Hello<br>\nworld</p>')

0 comments on commit d0495ab

Please sign in to comment.