Fixing contrib test issues

This commit is contained in:
Griatch 2021-12-18 23:56:38 +01:00
parent 04a95297b5
commit 7f2b8c81d7
30 changed files with 248 additions and 565 deletions

View file

@ -2162,7 +2162,7 @@ class TestCommsChannel(CommandTest):
)
from evennia.comms import comms # noqa
from evennia.commands.default import comms # noqa
class TestComms(CommandTest):
@ -2179,13 +2179,13 @@ class TestComms(CommandTest):
class TestBatchProcess(CommandTest):
@patch("evennia.contrib.tutorial_examples.red_button.repeat")
@patch("evennia.contrib.tutorial_examples.red_button.delay")
@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):
# cannot test batchcode here, it must run inside the server process
self.call(
batchprocess.CmdBatchCommands(),
"example_batch_cmds",
"batchprocessor.example_batch_cmds",
"Running Batch-command processor - Automatic mode for example_batch_cmds",
)
# we make sure to delete the button again here to stop the running reactor