diff --git a/sl_util/tests/unit/test_str_utils.py b/sl_util/tests/unit/test_str_utils.py index 565577cd..99585542 100644 --- a/sl_util/tests/unit/test_str_utils.py +++ b/sl_util/tests/unit/test_str_utils.py @@ -1,5 +1,5 @@ from pytest import mark -from random import randint +import random from unittest.mock import patch from sl_util.sl_util.str_utils import deterministic_uuid, to_number @@ -30,7 +30,7 @@ def test_deterministic_uuid_without_source(self, source): # Then we obtain two different values assert uuid1 != uuid2 - @mark.parametrize('source', [randint(0, 100), str(randint(0, 100))]) + @mark.parametrize('source', [random.randint(0, 100), str(random.randint(0, 100))]) def test_to_number(self, source): # GIVEN a random integer