evennia.contrib.grid.extended_room.tests
Testing of ExtendedRoom contrib
-
class
evennia.contrib.grid.extended_room.tests.TestExtendedRoom(methodName='runTest')[源代码]
基类:evennia.utils.test_resources.EvenniaTestCase
Test Extended Room typeclass.
-
base_room_desc = 'Base room description.'
-
setUp()[源代码]
Hook method for setting up the test fixture before exercising it.
-
tearDown()[源代码]
Hook method for deconstructing the test fixture after testing it.
-
test_room_description()[源代码]
Test that the vanilla room description is returned as expected.
-
test_seasonal_room_descriptions = None
-
test_get_time_of_day_tags = None
-
test_room_states()[源代码]
Test rooms with custom game states.
-
test_alternative_descs()[源代码]
Test rooms with alternate descriptions.
-
test_details()[源代码]
Test room details.
-
test_get_time_of_day_tags_0_morning(**kw)
Test room with $ [with *args=(‘morning’, ‘Morning room description.’)]
-
test_get_time_of_day_tags_1_afternoon(**kw)
Test room with $ [with *args=(‘afternoon’, ‘Afternoon room description.’)]
-
test_get_time_of_day_tags_2_evening(**kw)
Test room with $ [with *args=(‘evening’, ‘Evening room description.’)]
-
test_get_time_of_day_tags_3_night(**kw)
Test room with $ [with *args=(‘night’, ‘Night room description.’)]
-
test_seasonal_room_descriptions_0_spring(**kw)
Test that the room description changes with the season [with *args=(‘spring’, ‘Spring room description.’)].
-
test_seasonal_room_descriptions_1_summer(**kw)
Test that the room description changes with the season [with *args=(‘summer’, ‘Summer room description.’)].
-
test_seasonal_room_descriptions_2_autumn(**kw)
Test that the room description changes with the season [with *args=(‘autumn’, ‘Autumn room description.’)].
-
test_seasonal_room_descriptions_3_winter(**kw)
Test that the room description changes with the season [with *args=(‘winter’, ‘Winter room description.’)].
-
class
evennia.contrib.grid.extended_room.tests.TestExtendedRoomCommands(methodName='runTest')[源代码]
基类:evennia.utils.test_resources.BaseEvenniaCommandTest
Test the ExtendedRoom commands.
-
base_room_desc = 'Base room description.'
-
setUp()[源代码]
Sets up testing environment
-
test_cmd_desc(mock_gametime)[源代码]
Test new desc command
-
test_cmd_detail()[源代码]
Test adding details
-
test_cmd_roomstate(mock_gametime)[源代码]
Test the roomstate command
-
test_cmd_roomtime(mock_gametime)[源代码]
Test the time command
-
test_cmd_look(mock_gametime)[源代码]
Test the look command.