Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and jugmac00 committed May 29, 2022
1 parent 9715e8e commit b5ae180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions morepath_batching/tests/test_batching.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_pagination():
# The first page does not have a "previous" link
assert r.html.findAll("a", text="Previous") == []
else:
(prev,) = [a["href"] for a in r.html.findAll("a", text="Previous")]
(prev,) = (a["href"] for a in r.html.findAll("a", text="Previous"))
assert c.get(prev).html.select("table a") == records_in_page

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

0 comments on commit b5ae180

Please sign in to comment.