Skip to content

Commit 9cd46de

Browse files
committed
Temp commit, please rebase/ammend [skip ci]
1 parent 0a8a8b0 commit 9cd46de

File tree

3 files changed

+3
-39
lines changed

3 files changed

+3
-39
lines changed

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: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
23
import pytest
34

45
from mfr.core.provider import ProviderMetadata
@@ -15,10 +16,6 @@ def test_md_file_path():
1516
return os.path.join(os.path.dirname(os.path.abspath(__file__)), 'files', 'test.md')
1617

1718

18-
@pytest.fixture
19-
def invalid_md_file_path():
20-
return os.path.join(os.path.dirname(os.path.abspath(__file__)), 'files', 'invalid.md')
21-
2219
@pytest.fixture
2320
def url():
2421
return 'http://osf.io/file/test.md'
@@ -48,38 +45,5 @@ def test_render_md_cache_result(self, renderer):
4845
assert renderer.cache_result is True
4946

5047
def test_render_md(self, test_md_file_path, assets_url, export_url):
51-
metadata = ProviderMetadata('test', '.md', 'text/plain', '1234', 'http://wb.osf.io/file/test.md?token=1234')
52-
renderer = MdRenderer(metadata, test_md_file_path, url, assets_url, export_url)
53-
body = renderer.render()
54-
inbody = """
55-
<h1>Heading</h1>
56-
<h2>Sub-heading</h2>
57-
<h3>Another deeper heading</h3>
58-
<p>Paragraphs are separated
59-
by a blank line.</p>
60-
<p>Leave 2 spaces at the end of a line to do a<br />
61-
line break</p>
62-
<p>Text attributes <em>italic</em>, <strong>bold</strong>,
63-
<code>monospace</code>.</p>
64-
<p>A <a href="http://example.com">link</a>.
65-
[28]</p>
66-
<p>Shopping list:</p>
67-
<ul>
68-
<li>apples</li>
69-
<li>oranges</li>
70-
<li>pears</li>
71-
</ul>
72-
<p>Numbered list:</p>
73-
<ol>
74-
<li>apples</li>
75-
<li>oranges</li>
76-
<li>pears</li>
77-
</ol>
78-
<p>The rain---not the reign---in
79-
Spain.</p>
80-
<p>&lt;script&gt;
81-
alert("Hello world");
82-
&lt;/script&gt;</p>
83-
"""
84-
assert inbody in body
85-
48+
# TODO: implement tests
49+
pass

0 commit comments

Comments
 (0)