markdown-link-style

switch between inline and footnote link style in markdown documents.
git clone git://git.ricketyspace.net/markdown-link-style.git
Log | Files | Refs

commit f57643a70dfe7949e398c620a2a33e9167be5c70
parent 626ff419f36a8fe7e310346296e61486357b3055
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun,  4 Jun 2017 23:22:48 +0000

tests: Add test_mdl_style._get_data_path.

* tests/test_mdl_style.py (_get_data_path): New function.

Diffstat:
tests/test_mdl_style.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/test_mdl_style.py b/tests/test_mdl_style.py @@ -20,7 +20,7 @@ from mistune import Renderer, Markdown from nose.tools import * -from pkg_resources import resource_string +from pkg_resources import resource_string, resource_filename from mdl_style import * @@ -29,6 +29,9 @@ def _get_data(f): rs = resource_string(__name__, '/'.join(['data', f])) return rs.decode() +def _get_data_path(f): + return resource_filename(__name__, '/'.join(['data', f])) + class TestLSRendererIL(object): """Test class for mdl_style.LSRenderer inline link style.