Parameter min and max of int_to_string are now minimum and maximum.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 26 Jul 2021 20:28:30 +0000 (22:28 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 26 Jul 2021 20:28:30 +0000 (22:28 +0200)
tests/test_wrvalidators.py

index c08f044083d03d845fa1cb59a08905b5eb715c35..afe28dd7ab476507bdcd11b09909ba35396cc5c0 100644 (file)
@@ -203,16 +203,16 @@ class TestInt(unittest.TestCase):
         self.assertEqual(42, int_from_str('42'))
         self.assertEqual(42, int_from_str('+42'))
         self.assertEqual(-20, int_from_str('-20'))
-        self.assertEqual(0, int_from_str('0', min=0))
-        self.assertEqual(10, int_from_str('10', max=10))
+        self.assertEqual(0, int_from_str('0', minimum=0))
+        self.assertEqual(10, int_from_str('10', maximum=10))
         with self.assertRaises(ValueError):
             int_from_str('abc')
         with self.assertRaises(ValueError):
             int_from_str('')
         with self.assertRaises(ValueError):
-            int_from_str('-1', min=0)
+            int_from_str('-1', minimum=0)
         with self.assertRaises(ValueError):
-            int_from_str('11', max=10)
+            int_from_str('11', maximum=10)
         with self.assertRaises(ValueError):
             int_from_str('10.0')
         with self.assertRaises(ValueError):