@@ -476,10 +476,9 @@ def test_process_scripture_element() -> None:
476476
477477 assert quote_convention_changer ._quotation_mark_finder .num_times_called == 1
478478 assert mock_quotation_mark_resolver .num_times_called == 1
479- assert quote_convention_changer ._quotation_mark_finder .matches_to_return [0 ]._text_segment ._text == "this is a ‘test"
479+ assert quote_convention_changer ._quotation_mark_finder .matches_to_return [0 ]._text_segment .text == "this is a ‘test"
480480 assert (
481- quote_convention_changer ._quotation_mark_finder .matches_to_return [1 ]._text_segment ._text
482- == "the test ends” here"
481+ quote_convention_changer ._quotation_mark_finder .matches_to_return [1 ]._text_segment .text == "the test ends” here"
483482 )
484483
485484
@@ -494,7 +493,7 @@ def test_create_text_segments_basic() -> None:
494493 text_segments : List [TextSegment ] = quote_convention_changer ._create_text_segments (update_element )
495494
496495 assert len (text_segments ) == 1
497- assert text_segments [0 ]._text == "test segment"
496+ assert text_segments [0 ].text == "test segment"
498497 assert text_segments [0 ]._immediate_preceding_marker is UsfmMarkerType .NO_MARKER
499498 assert text_segments [0 ]._markers_in_preceding_context == set ()
500499 assert text_segments [0 ].previous_segment is None
@@ -517,7 +516,7 @@ def test_create_text_segments_with_preceding_markers() -> None:
517516 text_segments : List [TextSegment ] = quote_convention_changer ._create_text_segments (update_element )
518517
519518 assert len (text_segments ) == 1
520- assert text_segments [0 ]._text == "test segment"
519+ assert text_segments [0 ].text == "test segment"
521520 assert text_segments [0 ]._immediate_preceding_marker == UsfmMarkerType .PARAGRAPH
522521 assert text_segments [0 ]._markers_in_preceding_context == {
523522 UsfmMarkerType .VERSE ,
@@ -547,15 +546,15 @@ def test_create_text_segments_with_multiple_text_tokens() -> None:
547546 text_segments : List [TextSegment ] = quote_convention_changer ._create_text_segments (update_element )
548547
549548 assert len (text_segments ) == 2
550- assert text_segments [0 ]._text == "test segment1"
549+ assert text_segments [0 ].text == "test segment1"
551550 assert text_segments [0 ]._immediate_preceding_marker == UsfmMarkerType .PARAGRAPH
552551 assert text_segments [0 ]._markers_in_preceding_context == {
553552 UsfmMarkerType .VERSE ,
554553 UsfmMarkerType .PARAGRAPH ,
555554 }
556555 assert text_segments [0 ].previous_segment is None
557556 assert text_segments [0 ].next_segment == text_segments [1 ]
558- assert text_segments [1 ]._text == "test segment2"
557+ assert text_segments [1 ].text == "test segment2"
559558 assert text_segments [1 ]._immediate_preceding_marker == UsfmMarkerType .CHARACTER
560559 assert text_segments [1 ]._markers_in_preceding_context == {
561560 UsfmMarkerType .VERSE ,
@@ -574,7 +573,7 @@ def test_create_text_segment() -> None:
574573 segment : Union [TextSegment , None ] = quote_convention_changer ._create_text_segment (usfm_token )
575574
576575 assert segment is not None
577- assert segment ._text == "test segment"
576+ assert segment .text == "test segment"
578577 assert segment ._immediate_preceding_marker is UsfmMarkerType .NO_MARKER
579578 assert segment ._markers_in_preceding_context == set ()
580579 assert segment ._usfm_token == usfm_token
@@ -765,7 +764,7 @@ def test_start_new_chapter() -> None:
765764 segment = quote_convention_changer ._next_scripture_text_segment_builder .build ()
766765 assert quote_convention_changer ._current_strategy == QuotationMarkUpdateStrategy .SKIP
767766 assert segment ._immediate_preceding_marker == UsfmMarkerType .CHAPTER
768- assert segment ._text == ""
767+ assert segment .text == ""
769768 assert UsfmMarkerType .EMBED not in segment ._markers_in_preceding_context
770769 assert quote_convention_changer ._verse_text_quotation_mark_resolver ._issues == set ()
771770
0 commit comments