Example #1
0
def test_unsubscribe_unknown_command():
	c = chat.Chat(66026064)
	if c.is_exist():
		c.remove()
	app.process(66026064, "Привет", "1439105337")
	app.process(66026064, "/subscribe test stop", "1438600337")
	c.remove()
Example #2
0
def test_subscribe_news_auto_command():
	c = chat.Chat(66026064)
	if c.is_exist():
		c.remove()
	app.process(66026064, "Привет", "1439105337")
	app.process(66026064, "/subscribe news auto", "1438600337")
	c.remove()
	time.sleep(30)
Example #3
0
def test_help_command():
	c = chat.Chat(66026064)
	if c.is_exist():
		c.remove()
	app.process(66026064, "Привет", "1439105337")
	app.process(66026064, "/help", "1438600337")
	c.remove()
	time.sleep(30)
Example #4
0
def test_configure_subscriptions():
    c = chat.Chat(66026064)
    if c.is_exist():
        c.remove()

    app.process(66026064, "Привет", "1439105337")
    channels = c.get_subscriptions()
    assert channels[0] == "news"
    c.remove()
Example #5
0
def test_configure_subscriptions():
	c = chat.Chat(66026064)
	if c.is_exist():
		c.remove()

	app.process(66026064, "Привет", "1439105337")
	channels = c.get_subscriptions()
	assert channels[0] == "news"
	c.remove()
Example #6
0
def test_subscribe_digest_command():
	c = chat.Chat(66026064)
	if c.is_exist():
		c.remove()
	app.process(66026064, "Привет", "1439105337")
	app.process(66026064, "/subscribe digest", "1438600337")
	app.process(66026064, "/subscribe", "1438600337")
	#c.remove()