@@ -13,25 +13,25 @@ async def test_apply_full_change_should_work() -> None:
1313 text = """first"""
1414 new_text = """changed"""
1515 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
16- assert await document .text () == text
16+ assert document .text == text
1717
1818 await document .apply_full_change (1 , new_text )
1919
20- assert await document .text () == new_text
20+ assert document .text == new_text
2121
2222
2323@pytest .mark .asyncio
2424async def test_apply_apply_incremental_change_at_begining_should_work () -> None :
2525 text = """first"""
2626 new_text = """changed"""
2727 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
28- assert await document .text () == text
28+ assert document .text == text
2929
3030 await document .apply_incremental_change (
3131 1 , Range (start = Position (line = 0 , character = 0 ), end = Position (line = 0 , character = 0 )), new_text
3232 )
3333
34- assert await document .text () == new_text + text
34+ assert document .text == new_text + text
3535
3636
3737@pytest .mark .asyncio
@@ -40,13 +40,13 @@ async def test_apply_apply_incremental_change_at_end_should_work() -> None:
4040 new_text = """changed"""
4141
4242 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
43- assert await document .text () == text
43+ assert document .text == text
4444
4545 await document .apply_incremental_change (
4646 1 , Range (start = Position (line = 0 , character = len (text )), end = Position (line = 0 , character = len (text ))), new_text
4747 )
4848
49- assert await document .text () == text + new_text
49+ assert document .text == text + new_text
5050
5151
5252@pytest .mark .asyncio
@@ -55,21 +55,21 @@ async def test_save_and_revert_should_work() -> None:
5555 new_text = """changed"""
5656
5757 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
58- assert await document .text () == text
58+ assert document .text == text
5959
6060 assert not await document .revert (None )
6161
6262 await document .apply_incremental_change (
6363 2 , Range (start = Position (line = 0 , character = len (text )), end = Position (line = 0 , character = len (text ))), new_text
6464 )
6565
66- assert await document .text () == text + new_text
66+ assert document .text == text + new_text
6767 assert document .version == 2
6868
6969 assert await document .revert (None )
7070 assert not await document .revert (None )
7171
72- assert await document .text () == text
72+ assert document .text == text
7373 assert document .version == 1
7474
7575 await document .apply_incremental_change (
@@ -78,7 +78,7 @@ async def test_save_and_revert_should_work() -> None:
7878
7979 await document .save (None , None )
8080
81- assert await document .text () == text + new_text
81+ assert document .text == text + new_text
8282 assert document .version == 2
8383
8484
@@ -95,13 +95,13 @@ async def test_apply_apply_incremental_change_in_the_middle_should_work() -> Non
9595third"""
9696
9797 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
98- assert await document .text () == text
98+ assert document .text == text
9999
100100 await document .apply_incremental_change (
101101 1 , Range (start = Position (line = 1 , character = 7 ), end = Position (line = 1 , character = 7 )), new_text
102102 )
103103
104- assert await document .text () == expected
104+ assert document .text == expected
105105
106106
107107@pytest .mark .asyncio
@@ -113,13 +113,13 @@ async def test_apply_apply_incremental_change_with_start_line_eq_len_lines_shoul
113113 new_text = """changed """
114114
115115 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
116- assert await document .text () == text
116+ assert document .text == text
117117
118118 await document .apply_incremental_change (
119119 1 , Range (start = Position (line = 3 , character = 7 ), end = Position (line = 3 , character = 8 )), new_text
120120 )
121121
122- assert await document .text () == text + new_text
122+ assert document .text == text + new_text
123123
124124
125125@pytest .mark .asyncio
@@ -128,7 +128,7 @@ async def test_apply_apply_incremental_change_with_wrong_range_should_raise_inva
128128 new_text = """changed"""
129129
130130 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
131- assert await document .text () == text
131+ assert document .text == text
132132
133133 with pytest .raises (InvalidRangeError ):
134134 await document .apply_incremental_change (
@@ -141,11 +141,11 @@ async def test_apply_none_change_should_work() -> None:
141141 text = """first"""
142142
143143 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
144- assert await document .text () == text
144+ assert document .text == text
145145
146146 await document .apply_none_change ()
147147
148- assert await document .text () == text
148+ assert document .text == text
149149
150150
151151@pytest .mark .asyncio
@@ -157,7 +157,7 @@ async def test_lines_should_give_the_lines_of_the_document() -> None:
157157"""
158158
159159 document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
160- assert await document .text () == text
160+ assert document .text == text
161161
162162 await document .apply_none_change ()
163163
0 commit comments