This repository provides User Manual for setting up a Docker environment tailored for testing DGTD code.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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()
|
|
|