(example, model)
| 43 | @pytest.mark.parametrize("example", EXAMPLES) |
| 44 | @pytest.mark.parametrize("model", CHECKPOINTS.keys()) |
| 45 | def test_impira_dataset(example, model): |
| 46 | document = load_document(example.path) |
| 47 | pipe = pipeline("document-classification", model=CHECKPOINTS[model]) |
| 48 | resp = pipe(top_k=1, **document.context) |
| 49 | assert resp == [{"label": x} for x in example.classes[model]] |
nothing calls this directly
no test coverage detected