Skip to content

Commit b5ae180

Browse files
pre-commit-ci[bot]jugmac00
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9715e8e commit b5ae180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

morepath_batching/tests/test_batching.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_pagination():
2424
# The first page does not have a "previous" link
2525
assert r.html.findAll("a", text="Previous") == []
2626
else:
27-
(prev,) = [a["href"] for a in r.html.findAll("a", text="Previous")]
27+
(prev,) = (a["href"] for a in r.html.findAll("a", text="Previous"))
2828
assert c.get(prev).html.select("table a") == records_in_page
2929

3030
# Get the link to the next page or None if at the end
@@ -56,7 +56,7 @@ def test_non_aligned_page():
5656
assert [a.text for a in r.html.select("table a")] == [
5757
p.name for p in person_db[5:15]
5858
]
59-
(prev_url,) = [a["href"] for a in r.html.findAll("a", text="Previous")]
59+
(prev_url,) = (a["href"] for a in r.html.findAll("a", text="Previous"))
6060
assert [a.text for a in c.get(prev_url).html.select("table a")] == [
6161
p.name for p in person_db[:10]
6262
]

0 commit comments

Comments
 (0)