S️
Size: a a a
S️
S️
F
@property
def bot(self) -> Bot:
from ..bot.bot import Bot
bot = Bot.get_current()
if bot is None:
raise RuntimeError("Can't get bot instance from context. "
"You can fix it with setting current instance: "
"'Bot.set_current(bot_instance)'")
return bot
F
s
@property
def bot(self) -> Bot:
from ..bot.bot import Bot
bot = Bot.get_current()
if bot is None:
raise RuntimeError("Can't get bot instance from context. "
"You can fix it with setting current instance: "
"'Bot.set_current(bot_instance)'")
return bot
T
T
М
s
G
М
import unittest
class MyTestCase(unittest.TestCase):
def test_send_product(self):
self.assertIsNotNone(echo(test), "test")
М
F
М
F
T
s
М
F
s