Fix all unit tests for contribs
This commit is contained in:
parent
8139fd79c7
commit
541e5a116a
4 changed files with 11 additions and 17 deletions
|
|
@ -2178,10 +2178,16 @@ class TestComms(CommandTest):
|
|||
|
||||
|
||||
class TestBatchProcess(CommandTest):
|
||||
"""
|
||||
Test the batch processor.
|
||||
|
||||
"""
|
||||
# there is some sort of issue with the mock; it needs to loaded once to work
|
||||
from evennia.contrib.tutorials.red_button import red_button # noqa
|
||||
|
||||
@patch("evennia.contrib.tutorials.red_button.red_button.repeat")
|
||||
@patch("evennia.contrib.tutorials.red_button.red_button.delay")
|
||||
def test_batch_commands(self, mock_delay, mock_repeat):
|
||||
def test_batch_commands(self, mock_tutorials, mock_repeat):
|
||||
# cannot test batchcode here, it must run inside the server process
|
||||
self.call(
|
||||
batchprocess.CmdBatchCommands(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue