mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
84 lines
3 KiB
Python
84 lines
3 KiB
Python
import unittest
|
|
|
|
class TestTicker(unittest.TestCase):
|
|
def test___init__(self):
|
|
# ticker = Ticker(interval)
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_add(self):
|
|
# ticker = Ticker(interval)
|
|
# self.assertEqual(expected, ticker.add(store_key, obj, *args, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_remove(self):
|
|
# ticker = Ticker(interval)
|
|
# self.assertEqual(expected, ticker.remove(store_key))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_stop(self):
|
|
# ticker = Ticker(interval)
|
|
# self.assertEqual(expected, ticker.stop())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_validate(self):
|
|
# ticker = Ticker(interval)
|
|
# self.assertEqual(expected, ticker.validate(start_delay))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestTickerPool(unittest.TestCase):
|
|
def test___init__(self):
|
|
# ticker_pool = TickerPool()
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_add(self):
|
|
# ticker_pool = TickerPool()
|
|
# self.assertEqual(expected, ticker_pool.add(store_key, obj, interval, *args, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_remove(self):
|
|
# ticker_pool = TickerPool()
|
|
# self.assertEqual(expected, ticker_pool.remove(store_key, interval))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_stop(self):
|
|
# ticker_pool = TickerPool()
|
|
# self.assertEqual(expected, ticker_pool.stop(interval))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestTickerHandler(unittest.TestCase):
|
|
def test___init__(self):
|
|
# ticker_handler = TickerHandler(save_name)
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_add(self):
|
|
# ticker_handler = TickerHandler(save_name)
|
|
# self.assertEqual(expected, ticker_handler.add(obj, interval, *args, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_all(self):
|
|
# ticker_handler = TickerHandler(save_name)
|
|
# self.assertEqual(expected, ticker_handler.all(interval))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_clear(self):
|
|
# ticker_handler = TickerHandler(save_name)
|
|
# self.assertEqual(expected, ticker_handler.clear(interval))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_remove(self):
|
|
# ticker_handler = TickerHandler(save_name)
|
|
# self.assertEqual(expected, ticker_handler.remove(obj, interval))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_restore(self):
|
|
# ticker_handler = TickerHandler(save_name)
|
|
# self.assertEqual(expected, ticker_handler.restore())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_save(self):
|
|
# ticker_handler = TickerHandler(save_name)
|
|
# self.assertEqual(expected, ticker_handler.save())
|
|
assert True # TODO: implement your test here
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|