kiwi-el8/test/unit/markup/xml_test.py
Marcus Schäfer 9c9250ebc4
Support nose and xunit style tests
The modifications in this commit allows the unit tests
to run on both, pytest 6.x (nose test layout) and the new
pytest 7.x (xunit test layout). This Fixes #2072 in a
much nicer way. Thanks much to @smarlowucf
2022-02-26 20:26:18 +01:00

21 lines
519 B
Python

from pytest import raises
from kiwi.markup.xml import MarkupXML
from kiwi.exceptions import KiwiMarkupConversionError
class TestMarkupXML:
def setup(self):
self.markup = MarkupXML('../data/example_config.xml')
def setup_method(self, cls):
self.setup()
def test_get_xml_description(self):
assert 'xslt-' in self.markup.get_xml_description()
def test_get_yaml_description(self):
with raises(KiwiMarkupConversionError):
self.markup.get_yaml_description()