Spaces:
AIR-Bench
/
Running on CPU Upgrade

File size: 797 Bytes
8b7a945
6d7eea4
8b7a945
 
 
9134169
 
8b7a945
 
 
f30cbcc
 
8b7a945
df659d0
 
f30cbcc
 
6d7eea4
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import pytest
from src.display.utils import fields, AutoEvalColumnQA, COLS_QA, COLS_LONG_DOC, COLS_LITE, TYPES_QA, TYPES_LONG_DOC, QA_BENCHMARK_COLS, LONG_DOC_BENCHMARK_COLS, get_default_auto_eval_column_dict


def test_fields():
    for c in fields(AutoEvalColumnQA):
        print(c)


def test_macro_variables():
    print(f'COLS_QA: {COLS_QA}')
    print(f'COLS_LONG_DOC: {COLS_LONG_DOC}')
    print(f'COLS_LITE: {COLS_LITE}')
    print(f'TYPES_QA: {TYPES_QA}')
    print(f'TYPES_LONG_DOC: {TYPES_LONG_DOC}')
    print(f'QA_BENCHMARK_COLS: {QA_BENCHMARK_COLS}')
    print(f'LONG_DOC_BENCHMARK_COLS: {LONG_DOC_BENCHMARK_COLS}')


def test_get_default_auto_eval_column_dict():
    auto_eval_column_dict_list = get_default_auto_eval_column_dict()
    assert len(auto_eval_column_dict_list) == 9