mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
* full path mocks
This commit is contained in:
parent
b66829a4f3
commit
aeaf0e5446
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ class EvAdventureCharacterGenerationTest(BaseEvenniaTest):
|
|||
mock_randint.return_value = 10
|
||||
self.chargen = chargen.TemporaryCharacterSheet()
|
||||
|
||||
@patch("evadventure.rules.randint")
|
||||
@patch("evennia.contrib.tutorials.evadventure.rules.randint")
|
||||
def test_base_chargen(self, mock_randint):
|
||||
mock_randint.return_value = 17
|
||||
self.assertEqual(self.chargen.strength, 17) # not realistic, due to mock
|
||||
|
|
@ -35,7 +35,7 @@ class EvAdventureCharacterGenerationTest(BaseEvenniaTest):
|
|||
self.chargen.backpack, ["ration", "ration", "tent", "tent", "lockpicks", "soap"]
|
||||
)
|
||||
|
||||
@patch("evadventure.rules.randint")
|
||||
@patch("evennia.contrib.tutorials.evadventure.rules.randint")
|
||||
def test_base_chargen_armor_and_shield_None(self, mock_randint):
|
||||
mock_randint.return_value = 3
|
||||
self.chargen = chargen.TemporaryCharacterSheet()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue