File size: 368 Bytes
b78ad07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Test convbot."""
from convbot import __version__
from convbot import convbot


def test_version():
    """Test version."""
    assert __version__ == "0.1.0"


def test_sanity():
    """Sanity check."""
    try:
        assert not convbot()
    except Exception:
        assert True


def test_convbot():
    resp = convbot("How are you?")
    assert len(resp) > 3