Skip to content

Commit

Permalink
Merge pull request jupyter#519 from michaelpacer/go_away_pytest_depre…
Browse files Browse the repository at this point in the history
…cate

use pytest.mark.parameterize not yield tests from nose
  • Loading branch information
willingc committed Jan 23, 2017
2 parents 405a6d2 + 498ffde commit 605bac3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nbconvert/filters/tests/test_citation.py
Expand Up @@ -10,7 +10,7 @@
# Imports
#-----------------------------------------------------------------------------
from ..citation import citation2latex
from nose.tools import assert_equal
import pytest

#-----------------------------------------------------------------------------
# Tests
Expand Down Expand Up @@ -144,7 +144,9 @@
1 < 2 it is even worse if it is alone in a line.
"""}

def test_citation2latex():

@pytest.mark.parametrize(["in_arg", "out_arg"], [
(in_arg, out_arg) for (in_arg, out_arg) in test_md.items()])
def test_citation2latex(in_arg, out_arg):
"""Are citations parsed properly?"""
for input, output in test_md.items():
yield (assert_equal, citation2latex(input), output)
assert citation2latex(in_arg)==out_arg

0 comments on commit 605bac3

Please sign in to comment.