This commit is contained in:
@@ -12,7 +12,7 @@ from unittest.mock import Mock, patch, MagicMock
|
||||
from pyWebLayout.concrete.text import Text, Line
|
||||
from pyWebLayout.abstract.inline import Word
|
||||
from pyWebLayout.style import Font, FontStyle, FontWeight, TextDecoration
|
||||
from pyWebLayout.style.layout import Alignment
|
||||
from pyWebLayout.style import Alignment
|
||||
|
||||
class TestText(unittest.TestCase):
|
||||
def setUp(self):
|
||||
@@ -247,14 +247,14 @@ class TestLine(unittest.TestCase):
|
||||
# Create a word to add
|
||||
|
||||
for i in range(100):
|
||||
word = Word(text="AAAAAAAA", style=self.style)
|
||||
word = Word(text="AAAAAAA", style=self.style)
|
||||
|
||||
# This test may need adjustment based on the actual implementation
|
||||
|
||||
success, overflow_part = line.add_word(word)
|
||||
# If successful, the word should be added
|
||||
if overflow_part:
|
||||
self.assertEqual(overflow_part.text , "AA")
|
||||
self.assertEqual(overflow_part.text , "A")
|
||||
return
|
||||
|
||||
self.assertFalse(True)
|
||||
|
||||
Reference in New Issue
Block a user