Esempio n. 1
0
def test_handle_member_left():
    event = {"type": "member_left_channel", "user": "******"}

    hooks = limbo.init_plugins("test/plugins")
    server = limbo.FakeServer(hooks=hooks)

    assert limbo.handle_event(event, server) == "user 2 left"
Esempio n. 2
0
def test_handle_member_left():
    event = {
      "type": "member_left_channel",
      "user": "******"
    }

    hooks = limbo.init_plugins("test/plugins")
    server = limbo.FakeServer(hooks=hooks)

    assert limbo.handle_event(event, server) == "user 2 left"