kiwi-el8/test/unit/markup/base_test.py
Marcus Schäfer d499eddc80
Added strong typing for the following API methods
* logger
* logger_color_formatter
* logger_filter
* xml_description
* xml_state
* markup/any
* markup/base
* markup/xml

This references Issue #1644
2020-12-17 10:37:22 +01:00

22 lines
592 B
Python

from pytest import raises
from kiwi.markup.base import MarkupBase
class TestMarkupBase:
def setup(self):
self.markup = MarkupBase('../data/example_config.xml')
def test_get_xml_description(self):
with raises(NotImplementedError):
self.markup.get_xml_description()
def test_get_yaml_description(self):
with raises(NotImplementedError):
self.markup.get_yaml_description()
def test_apply_xslt_stylesheets(self):
assert 'xslt-' in self.markup.apply_xslt_stylesheets(
'../data/example_config.xml'
)