File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1212
1313from tests .util import assert_is_ppo
1414from tests .util import elementary_test
15- from tomlkit import api
15+ from tomlkit import api , value
1616from tomlkit import parse
1717from tomlkit .exceptions import NonExistentKey
1818from tomlkit .items import Array
@@ -129,13 +129,16 @@ def test_aot_unwrap():
129129 assert_is_ppo (vu , str )
130130
131131def test_aot_set_item ():
132- d = item (["A" , {"b" : "B" }])
132+ d = item (["A" , {"b" : "B" }, [ "c" , "D" ] ])
133133 d [0 ] = "C"
134+ assert isinstance (d [0 ], String )
134135 assert d [0 ] == "C"
135136 d [1 ]["b" ] = "D"
137+ assert isinstance (d [1 ], InlineTable )
136138 assert d [1 ]["b" ] == "D"
137- d [0 ] = {"c" : "C" }
138- assert d [0 ]["c" ] == "C"
139+ d [0 ] = ["c" , "C" ]
140+ assert isinstance (d [0 ], Array )
141+ assert d [0 ][1 ] == "C"
139142
140143def test_time_unwrap ():
141144 t = time (3 , 8 , 14 )
You can’t perform that action at this time.
0 commit comments