Conditions | 6 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | """Unit tests for backends in Annif""" |
||
22 | def test_get_backend_dummy(): |
||
23 | dummy = annif.backend.get_backend("dummy") |
||
24 | assert dummy.config["key"] == "value" |
||
25 | result = dummy.analyze('this is some text') |
||
26 | assert len(result) == 1 |
||
27 | assert result[0].uri == 'http://example.org/dummy' |
||
28 | assert result[0].label == 'dummy' |
||
29 | assert result[0].score == 1.0 |
||
30 |