From 6100feb3156d7415be6294e491d431c5de751cfa Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 7 Jun 2023 16:35:55 +0200 Subject: [PATCH] Missed one hardcoded id in unit test --- evennia/contrib/grid/extended_room/tests.py | 32 +++++++-------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/evennia/contrib/grid/extended_room/tests.py b/evennia/contrib/grid/extended_room/tests.py index 5486620715..0b93ce96f0 100644 --- a/evennia/contrib/grid/extended_room/tests.py +++ b/evennia/contrib/grid/extended_room/tests.py @@ -217,7 +217,7 @@ Base room description. extended_room.CmdExtendedRoomDesc(), "", """ -Room Room(#1) Season: autumn. Time: afternoon. States: None +Room Room(#{self.room1.id}) Season: autumn. Time: afternoon. States: None Room state spring: Spring description. @@ -234,10 +234,8 @@ Base room description. self.call( extended_room.CmdExtendedRoomDesc(), "/del/burning/spring", - ( - "The burning-description was deleted, if it existed.|The spring-description was" - " deleted, if it existed" - ), + "The burning-description was deleted, if it existed.|The spring-description was" + " deleted, if it existed", ) # add autumn, which should be active self.call( @@ -324,10 +322,8 @@ The room Room(#{self.room1.id}) doesn't have any details. self.call( extended_room.CmdExtendedRoomState(), "", - ( - f"Room states (not counting automatic time/season) on Room(#{self.room1.id}):\n " - "'burning' and 'windy'" - ), + f"Room states (not counting automatic time/season) on Room(#{self.room1.id}):\n " + "'burning' and 'windy'", ) # toggle windy self.call( @@ -338,10 +334,8 @@ The room Room(#{self.room1.id}) doesn't have any details. self.call( extended_room.CmdExtendedRoomState(), "", - ( - f"Room states (not counting automatic time/season) on Room(#{self.room1.id}):\n " - "'burning'" - ), + f"Room states (not counting automatic time/season) on Room(#{self.room1.id}):\n " + "'burning'", ) # add a autumn state and make sure we override it self.room1.add_desc("Autumn description.", room_state="autumn") @@ -392,17 +386,13 @@ The room Room(#{self.room1.id}) doesn't have any details. self.call( extended_room.CmdExtendedRoomLook(), "", - ( - f"Room(#{self.room1.id})\nThis is a nice autumnal forest. The afternoon sun is" - " shining through the trees." - ), + f"Room(#{self.room1.id})\nThis is a nice autumnal forest. The afternoon sun is" + " shining through the trees.", ) self.room1.add_room_state("burning") self.call( extended_room.CmdExtendedRoomLook(), "", - ( - f"Room(#{self.room1.id})\nThis is a nice autumnal forest. The afternoon sun is" - " shining through the trees and this place is on fire!" - ), + f"Room(#{self.room1.id})\nThis is a nice autumnal forest. The afternoon sun is" + " shining through the trees and this place is on fire!", )