File size: 323 Bytes
25fc3a2
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from application import Application

def test_application():
    app = Application()
    
    # Test uploading CSV file
    app.upload_csv("test.csv")
    assert app.csv_loader.loaded_files == ["test.csv"]
    
    # Test asking question
    answer = app.ask_question("What is the sum?")
    assert isinstance(answer, str)