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
21 lines
519 B
Python
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()
|