File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def test_pagination():
24
24
# The first page does not have a "previous" link
25
25
assert r .html .findAll ("a" , text = "Previous" ) == []
26
26
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" ))
28
28
assert c .get (prev ).html .select ("table a" ) == records_in_page
29
29
30
30
# Get the link to the next page or None if at the end
@@ -56,7 +56,7 @@ def test_non_aligned_page():
56
56
assert [a .text for a in r .html .select ("table a" )] == [
57
57
p .name for p in person_db [5 :15 ]
58
58
]
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" ))
60
60
assert [a .text for a in c .get (prev_url ).html .select ("table a" )] == [
61
61
p .name for p in person_db [:10 ]
62
62
]
You can’t perform that action at this time.
0 commit comments