Skip to content

Commit ba35d2a

Browse files
committed
fix tests
1 parent 1b7d16b commit ba35d2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_contexts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_follow_context(self):
9797

9898
assert asker_name in result
9999
assert asker_card in result
100-
assert asker_reason in result
100+
assert asker_reason not in result
101101
assert character_name in result
102102
assert character_card in result
103103
assert history in result

tests/test_normal_commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def test_wield(self):
127127
assert self.test_player.wielding != item
128128

129129
def test_request_follow(self):
130+
self.io_util.set_response('{"response":"no"')
130131
test_npc = LivingNpc('test_npc', 'f')
131132
location = Location('test_room')
132133
location.init_inventory([self.test_player, test_npc])

0 commit comments

Comments
 (0)