Skip to content

Commit

Permalink
Merge pull request #519 from michaelpacer/go_away_pytest_deprecate
Browse files Browse the repository at this point in the history
use pytest.mark.parameterize not yield tests from nose
  • Loading branch information
willingc authored 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
Original file line number Diff line number Diff line change
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.