Skip to content

Commit

Permalink
fix labels test
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio9701 committed Aug 10, 2023
1 parent 1f03eb2 commit 60fc408
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,25 @@ def test_duration_labels(self):
# Case 0-10
bins, test = up.utils.create_duration_labels(inp_1)
self.assertEqual(bins, [0, 15])
self.assertEqual(test, ["De 0 a 15"])
self.assertEqual(test, ["0-15"])

# Case 0-20
bins, test = up.utils.create_duration_labels(inp_2)
self.assertEqual(bins, [0, 15, 30])
self.assertEqual(test, ["De 0 a 15", "De 15 a 30"])
self.assertEqual(test, ["0-15", "15-30"])

# Case 10-100
bins, test = up.utils.create_duration_labels(inp_3)
self.assertEqual(bins, [0, 15, 30, 45, 60, 90, 120])
self.assertEqual(
test,
[
"De 0 a 15",
"De 15 a 30",
"De 30 a 45",
"De 45 a 60",
"De 60 a 90",
"De 90 a 120",
"0-15",
"15-30",
"30-45",
"45-60",
"60-90",
"90-120",
],
)

Expand Down

0 comments on commit 60fc408

Please sign in to comment.