File size: 276 Bytes
0121498
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import os
from qa_engine import Config, QAEngine


def test_qa_engine():
    config = Config()
    qa_engine = QAEngine(config=config)
    response = qa_engine.get_response(
        question='What is the capital of Poland?',
    )
    assert response.get_answer() == 'Warsaw'