Skip to content

Commit edf8ae5

Browse files
committed
Temp commit, please ammend/rebase, requires ci
1 parent cdcdebd commit edf8ae5

File tree

6 files changed

+2
-72
lines changed

6 files changed

+2
-72
lines changed

.eslintrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

mfr/extensions/md/settings.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ scipy==0.19.1
5151

5252
# Md
5353
markdown==2.6.2
54-
bleach==2.0.0
5554

5655
# Issue: certifi-2015.9.6.1 and 2015.9.6.2 fail verification (https://github.com/certifi/python-certifi/issues/26)
5756
certifi==2015.4.28

tests/extensions/md/__init__.py

Whitespace-only changes.

tests/extensions/md/files/invalid.md

-76.6 KB
Binary file not shown.

tests/extensions/md/test_renderer.py

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ def test_md_file_path():
1616
return os.path.join(os.path.dirname(os.path.abspath(__file__)), 'files', 'test.md')
1717

1818

19-
@pytest.fixture
20-
def invalid_md_file_path():
21-
return os.path.join(os.path.dirname(os.path.abspath(__file__)), 'files', 'invalid.md')
22-
23-
2419
@pytest.fixture
2520
def url():
2621
return 'http://osf.io/file/test.md'
@@ -50,25 +45,5 @@ def test_render_md_cache_result(self, renderer):
5045
assert renderer.cache_result is True
5146

5247
def test_render_md(self, test_md_file_path, assets_url, export_url):
53-
54-
metadata = ProviderMetadata(
55-
'test',
56-
'.md',
57-
'text/plain',
58-
'1234',
59-
'http://wb.osf.io/file/test.md?token=1234'
60-
)
61-
62-
md_renderer = MdRenderer(metadata, test_md_file_path, url, assets_url, export_url)
63-
body = md_renderer.render()
64-
in_body = 'The rain---not the reign---in\nSpain.\n\n<script>\nalert("Hello world");\n</script>'
65-
assert in_body in body
66-
67-
# TODO: it is hard to test since rendering is performed by front-end javascript, if possible test the following:
68-
# TODO: test bleach (python)
69-
# TODO: test invalid/corrupted file (e.g. when bleach fails parsing the file)
70-
# TODO: test markdown-it
71-
# TODO: test toc
72-
# TODO: test highlight
73-
# TODO: test mathjax
74-
# TODO: test sanitizer
48+
# TODO: implement tests
49+
pass

0 commit comments

Comments
 (0)