Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiandow committed Oct 8, 2024
1 parent 5147596 commit d46894f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,16 @@ def test_add_js(self):
)
)

def __run_single_node_test(self, sentence, text_only=False, number_of_sentences=None):
def __run_single_node_test(self, text, text_only=False, number_of_sentences=None):
self.container.paragraph_counter = defaultdict(lambda: 1)
node = etree.Element(f"{{{container.XHTML_NAMESPACE}}}p")

if text_only:
self.assertTrue(
self.container._append_kobo_spans_from_text(node, sentence, "test")
self.container._append_kobo_spans_from_text(node, text, "test")
)
else:
node.text = sentence
node.text = text
node = self.container._add_kobo_spans_to_node(node, "test")

# check number of sentences
Expand Down

0 comments on commit d46894f

Please sign in to comment.