File: markup_test.py

package info (click to toggle)
pybtex 0.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,628 kB
  • sloc: python: 13,585; makefile: 181; sh: 39; javascript: 29
file content (10 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
import pytest

from pybtex.markup import LaTeXParser
from pybtex.scanner import PybtexSyntaxError


@pytest.mark.parametrize(["bad_input"], [("abc{def}}",), ("abc{def}{",)])
def test_syntax_error(bad_input):
    with pytest.raises(PybtexSyntaxError):
        LaTeXParser(bad_input).parse()