Skip to content

Commit

Permalink
Apply code formatting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jul 23, 2020
1 parent 400a59d commit 7477302
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/library/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,26 @@


class UtilsTest(unittest.TestCase):

def test_get_minutes_english_description(self):
text = '1 hour 15 mins'
text = "1 hour 15 mins"
result = get_minutes(text)

assert result == 75

def test_get_minutes_english_abbreviation(self):
text = '3h10m'
text = "3h10m"
result = get_minutes(text)

assert result == 190

def test_get_minutes_short_iso_format(self):
text = 'PT2H30M'
text = "PT2H30M"
result = get_minutes(text)

assert result == 150

def test_get_minutes_long_iso_format(self):
text = 'P0DT1H10M'
text = "P0DT1H10M"
result = get_minutes(text)

assert result == 70

0 comments on commit 7477302

Please sign in to comment.