Skip to content

Commit 81b2fea

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 20038db commit 81b2fea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_items.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from tests.util import assert_is_ppo
1414
from tests.util import elementary_test
15-
from tomlkit import api, value
15+
from tomlkit import api
1616
from tomlkit import parse
1717
from tomlkit.exceptions import NonExistentKey
1818
from tomlkit.items import Array
@@ -128,6 +128,7 @@ def test_aot_unwrap():
128128
assert_is_ppo(ku, str)
129129
assert_is_ppo(vu, str)
130130

131+
131132
def test_aot_set_item():
132133
d = item(["A", {"b": "B"}, ["c", "D"]])
133134
d[0] = "C"
@@ -136,10 +137,11 @@ def test_aot_set_item():
136137
d[1]["b"] = "D"
137138
assert isinstance(d[1], InlineTable)
138139
assert d[1]["b"] == "D"
139-
d[0] = ["c", "C"]
140+
d[0] = ["c", "C"]
140141
assert isinstance(d[0], Array)
141142
assert d[0][1] == "C"
142143

144+
143145
def test_time_unwrap():
144146
t = time(3, 8, 14)
145147
elementary_test(item(t), time)
@@ -1030,5 +1032,3 @@ def test_removal_of_arrayitem_with_extra_whitespace():
10301032
docstr = doc.as_string()
10311033
parse(docstr)
10321034
assert docstr == expected
1033-
1034-

0 commit comments

Comments
 (0)