Use a two-digit number for incdec tests
This commit is contained in:
parent
c78f83e692
commit
f12fbe875e
@ -546,12 +546,12 @@ class TestIncDecNumber:
|
|||||||
"""Test incdec_number with valid URLs."""
|
"""Test incdec_number with valid URLs."""
|
||||||
# The integer used should not affect test output, as long as it's
|
# The integer used should not affect test output, as long as it's
|
||||||
# bigger than 1
|
# bigger than 1
|
||||||
# 4 was chosen by dice roll, guaranteed to be random
|
# 20 was chosen by dice roll, guaranteed to be random
|
||||||
base_value = value.format(4)
|
base_value = value.format(20)
|
||||||
if incdec == 'increment':
|
if incdec == 'increment':
|
||||||
expected_value = value.format(5)
|
expected_value = value.format(21)
|
||||||
else:
|
else:
|
||||||
expected_value = value.format(3)
|
expected_value = value.format(19)
|
||||||
|
|
||||||
base_url = QUrl(url.format(base_value))
|
base_url = QUrl(url.format(base_value))
|
||||||
expected_url = QUrl(url.format(expected_value))
|
expected_url = QUrl(url.format(expected_value))
|
||||||
|
Loading…
Reference in New Issue
Block a user