Merge pull request #3221 from BladeBoles/fix/beginner-tutorial-rules-typo

fix: beginner tutorial 3.2.4 "Rules and Dice Rolling" typo
This commit is contained in:
Griatch 2023-07-14 12:42:15 +02:00 committed by GitHub
commit 9aae2935b1

View file

@ -584,7 +584,7 @@ class TestEvAdventureRuleEngine(BaseEvenniaTest):
@patch("evadventure.rules.randint")
def test_roll(self, mock_randint):
mock_randint.return_value = 4
self.assertEqual(self.roll_engine.roll("1d6", 4))
self.assertEqual(self.roll_engine.roll("1d6"), 4)
self.assertEqual(self.roll_engine.roll("2d6"), 2 * 4)
# test of the other rule methods below ...