Datasets:
mteb
/

File size: 449 Bytes
16d7a28
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from pathlib import Path
import pytest
from datasets import load_dataset
from results import MODELS


@pytest.mark.parametrize("model", MODELS)
@pytest.mark.xfail(reason="If new model added this test will fail")
def test_load_results_from_datasets(model):
    """Ensures that all models can be imported from dataset"""
    path = Path(__file__).parent.parent / "results.py"
    ds = load_dataset(str(path.absolute()), model, trust_remote_code=True)