File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from hamcrest import assert_that , is_
6
6
7
- from jedi_language_server .initialization_options import InitializationOptions
7
+ from jedi_language_server .initialization_options import (
8
+ InitializationOptions ,
9
+ initialization_options_converter ,
10
+ )
8
11
9
12
10
13
def test_initialization_options () -> None :
11
14
"""Test our adjustments to parsing of the initialization options."""
12
15
13
- initialization_options = InitializationOptions . model_validate (
16
+ initialization_options = initialization_options_converter . structure (
14
17
{
15
18
"completion" : {
16
19
"resolveEagerly" : True ,
@@ -25,6 +28,7 @@ def test_initialization_options() -> None:
25
28
},
26
29
"extra" : "ignored" ,
27
30
},
31
+ InitializationOptions ,
28
32
)
29
33
30
34
assert_that (initialization_options .completion .resolve_eagerly , is_ (True ))
You can’t perform that action at this time.
0 commit comments