test.test_util   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_create_example() 0 6 1
1
from e2edutch import util
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
3
4
def test_create_example():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
5
    text = 'Dit is een zin.'
6
    example = util.create_example(text, doc_key='test')
7
    assert example['doc_key'] == 'test'
8
    assert len(example['sentences']) > 0
9
    assert len(example['sentences'][0]) > 0
10