mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Manually unsubscribe ticker handler
This commit is contained in:
parent
24866df8cd
commit
d6a5af1f21
1 changed files with 2 additions and 1 deletions
|
|
@ -1307,6 +1307,7 @@ class TestTurnBattleFunc(EvenniaTest):
|
|||
turnhandler.stop()
|
||||
# Now time to test item stuff.
|
||||
user = create_object(tb_items.TBItemsCharacter, key="User")
|
||||
user.TICKER_HANDLER.remove(interval=30, callback=user.at_update)
|
||||
testroom = create_object(DefaultRoom, key="Test Room")
|
||||
user.location = testroom
|
||||
test_healpotion = create_object(key="healing potion")
|
||||
|
|
@ -1337,7 +1338,7 @@ class TestTurnBattleFunc(EvenniaTest):
|
|||
user.db.conditions = {"Poisoned":[5, user]}
|
||||
tb_items.itemfunc_cure_condition(test_healpotion, user, user)
|
||||
self.assertTrue(user.db.conditions == {})
|
||||
# Delete the test character to prevent ticker handler problems
|
||||
# Delete the test character
|
||||
user.delete()
|
||||
|
||||
# Test tree select
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue