def test_predict(get_mock_environment: Path, capsys: pytest.CaptureFixture) -> None:
    """Test prediction with the tiled ensemble."""
    predict_pipeline = EvalTiledEnsemble(root_dir=get_mock_environment / "Padim" / "MVTecAD" / "dummy" / "v0")
    predict_parser = predict_pipeline.get_parser()
    args = predict_parser.parse_args(["--config", str(get_mock_environment / "tiled_ensemble.yaml")])
    predict_pipeline.run(args)
    # check that no errors were printed -> all stages were successful
    out = capsys.readouterr().out
    assert not any(line.startswith("There were some errors") for line in out.split("\n"))
Test prediction with the tiled ensemble.
tests/integration/pipelines/test_tiled_ensemble.py