evennia.contrib.grid.extended_room.tests
Testing of ExtendedRoom contrib
-
class
evennia.contrib.grid.extended_room.tests.
TestExtendedRoom
(methodName='runTest')[source]
Bases: evennia.utils.test_resources.EvenniaTestCase
Test Extended Room typeclass.
-
base_room_desc
= 'Base room description.'
-
setUp
()[source]
Hook method for setting up the test fixture before exercising it.
-
tearDown
()[source]
Hook method for deconstructing the test fixture after testing it.
-
test_room_description
()[source]
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
()[source]
Test rooms with custom game states.
-
test_alternative_descs
()[source]
Test rooms with alternate descriptions.
-
test_details
()[source]
Test room details.
-
test_get_time_of_day_tags_0_morning
()
Test room with $ [with *args=(‘morning’, ‘Morning room description.’)]
-
test_get_time_of_day_tags_1_afternoon
()
Test room with $ [with *args=(‘afternoon’, ‘Afternoon room description.’)]
-
test_get_time_of_day_tags_2_evening
()
Test room with $ [with *args=(‘evening’, ‘Evening room description.’)]
-
test_get_time_of_day_tags_3_night
()
Test room with $ [with *args=(‘night’, ‘Night room description.’)]
-
test_seasonal_room_descriptions_0_spring
()
Test that the room description changes with the season [with *args=(‘spring’, ‘Spring room description.’)].
-
test_seasonal_room_descriptions_1_summer
()
Test that the room description changes with the season [with *args=(‘summer’, ‘Summer room description.’)].
-
test_seasonal_room_descriptions_2_autumn
()
Test that the room description changes with the season [with *args=(‘autumn’, ‘Autumn room description.’)].
-
test_seasonal_room_descriptions_3_winter
()
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')[source]
Bases: evennia.utils.test_resources.BaseEvenniaCommandTest
Test the ExtendedRoom commands.
-
base_room_desc
= 'Base room description.'
-
setUp
()[source]
Sets up testing environment
-
test_cmd_desc
(mock_gametime)[source]
Test new desc command
-
test_cmd_detail
()[source]
Test adding details
-
test_cmd_roomstate
(mock_gametime)[source]
Test the roomstate command
-
test_cmd_roomtime
(mock_gametime)[source]
Test the time command
-
test_cmd_look
(mock_gametime)[source]
Test the look command.