Пофиксил тесты
This commit is contained in:
parent
bd26508185
commit
e9ce303a6c
|
|
@ -27,7 +27,7 @@ another bla
|
|||
<include 'paht2'>
|
||||
yet another bla"""
|
||||
|
||||
processedText = self.includeText.processText(text)
|
||||
processedText = self.includeText.processText(text, self.includeText)
|
||||
|
||||
expected = """
|
||||
bla bla
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@ class TestCommentRemover(unittest.TestCase):
|
|||
|
||||
def test_startsWithComment(self):
|
||||
line = '# this line is comment'
|
||||
newLine = self.commentRemover.processText(line)
|
||||
newLine = self.commentRemover.processText(line, self.commentRemover)
|
||||
|
||||
self.assertEqual('', newLine)
|
||||
|
||||
def test_containsComment(self):
|
||||
line = 'this line contains # a comment'
|
||||
newLine = self.commentRemover.processText(line)
|
||||
newLine = self.commentRemover.processText(line, self.commentRemover)
|
||||
|
||||
self.assertEqual('this line contains ', newLine)
|
||||
|
|
@ -21,6 +21,6 @@ class TestMacroResolver(unittest.TestCase):
|
|||
|
||||
def test_resolveLine(self):
|
||||
line = '{@key1} bla {@some_name} version: {@version}'
|
||||
newLine = self.macroResolver.processText(line)
|
||||
newLine = self.macroResolver.processText(line, self.macroResolver)
|
||||
|
||||
self.assertEqual('hello world bla another name version: 1.2.3', newLine)
|
||||
|
|
@ -8,6 +8,6 @@ class TestStripper(unittest.TestCase):
|
|||
|
||||
def test_stripLine(self):
|
||||
line = ' \tSome text \t\r\n'
|
||||
newLine = self.stripper.processText(line)
|
||||
newLine = self.stripper.processText(line, self.stripper)
|
||||
|
||||
self.assertEqual('Some text', newLine)
|
||||
Loading…
Reference in New Issue