Skip to content

Commit

Permalink
[OPT-1116] fix coverage (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfernandezvigo committed Apr 2, 2024
1 parent c65082d commit 7304991
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sl_util/tests/unit/test_str_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pytest import mark
from pytest import mark, param
import random
from unittest.mock import patch
from sl_util.sl_util.str_utils import deterministic_uuid, to_number
Expand Down Expand Up @@ -30,8 +30,11 @@ def test_deterministic_uuid_without_source(self, source):
# Then we obtain two different values
assert uuid1 != uuid2

@mark.parametrize('source', [random.randint(0, 100), str(random.randint(0, 100))])
def test_to_number(self, source):
@mark.parametrize('source', [
param(random.randint(0, 100)),
param(str(random.randint(0, 100)))
])
def test_to_number(self, source: any):
# GIVEN a random integer

# WHEN it is transformed to a number
Expand Down

0 comments on commit 7304991

Please sign in to comment.