Skip to content

Commit 5a513bf

Browse files
committed
Formatted tests
1 parent 5daa11f commit 5a513bf

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/parser/test_dice_parser_dice.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# -*- coding: utf-8 -*-
22

3-
import unittest
4-
53
import sys
4+
import unittest
65

76
from dice_notation.dice import Rollable
87
from dice_notation.parser import DiceParser
@@ -84,7 +83,7 @@ def test_max(self):
8483
"""
8584
Tests that a simple dice notation can be parsed.
8685
"""
87-
dice = self.parser.parse(str(sys.maxsize)+"d"+str(sys.maxsize))
86+
dice = self.parser.parse(str(sys.maxsize) + "d" + str(sys.maxsize))
8887

8988
self.assertEqual(sys.maxsize, dice.quantity)
9089
self.assertEqual(sys.maxsize, dice.sides)

tests/parser/test_dice_parser_mixed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def test_mixed_subNumber(self):
5656

5757
self.assertTrue(isinstance(result, Rollable))
5858

59+
5960
class TestMultipleRoll(unittest.TestCase):
6061
"""
6162
Tests that simple dice expressions can be parsed into the Dice class.

tests/test_dice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ def test_singleDie_multipleRoll(self):
9797
self.assertIsNotNone(dice.roll())
9898

9999

100-
101100
class TestRollInvalid(unittest.TestCase):
102101
"""
103102
Tests the Dice roll method.
104103
"""
104+
105105
# TODO: Check if these cases should throw exceptions
106106

107107
def test_negativeQuantity(self):
@@ -134,4 +134,4 @@ def test_noneSides(self):
134134
"""
135135
dice = RollableDice(1, None)
136136

137-
self.assertIsNone(dice.roll())
137+
self.assertIsNone(dice.roll())

0 commit comments

Comments
 (0)