-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtest_different_backends.py
More file actions
32 lines (29 loc) · 1.04 KB
/
test_different_backends.py
File metadata and controls
32 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from dicee.executer import Execute
import pytest
from dicee.config import Namespace
class TestBackends:
@pytest.mark.filterwarnings('ignore::UserWarning')
def test_pandas_as_backend(self):
args = Namespace()
args.dataset_dir = 'KGs/UMLS'
args.backend = 'pandas'
Execute(args).start()
@pytest.mark.filterwarnings('ignore::UserWarning')
def test_pandas_rdf_as_backend(self):
args = Namespace()
args.path_single_kg = 'KGs/Family/family-benchmark_rich_background.owl'
args.backend = 'rdflib'
Execute(args).start()
@pytest.mark.filterwarnings('ignore::UserWarning')
def test_pandas_as_backend(self):
args = Namespace()
args.path_dataset_folder = 'KGs/UMLS'
args.backend = 'pandas'
Execute(args).start()
@pytest.mark.filterwarnings('ignore::UserWarning')
def test_pandas_as_backend(self):
args = Namespace()
args.dataset_dir = 'KGs/UMLS'
args.backend = 'polars'
args.separator=" "
Execute(args).start()