def test_goblin_initiative_patch(self): g = Goblin() with patch('game_engine.dice._random_int') as mock_roll: mock_roll.return_value = 10 self.assertEqual(g.roll_initiative(), 12)
def test_goblin_initiative(self): g = Goblin() # goblin dex mod self.assertTrue(3 <= g.roll_initiative() <= 22)