Skip to content

Commit 9ea8662

Browse files
committed
Update test_validators.py
1 parent af44b5e commit 9ea8662

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/searchcommands/test_validators.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,9 @@ def test(integer):
208208

209209
def test_float(self):
210210
# Float validator test
211-
import random
212211

213-
maxsize = random.random() + 1
214-
minsize = random.random() - 1
212+
maxsize = 1.5
213+
minsize = -1.5
215214

216215
validator = validators.Float()
217216

0 commit comments

Comments
 (0)