def test_train(get_mock_environment: Path, capsys: pytest.CaptureFixture) -> None:
    """Test training of the tiled ensemble."""
    train_pipeline = TrainTiledEnsemble()
    train_parser = train_pipeline.get_parser()
    args = train_parser.parse_args(["--config", str(get_mock_environment / "tiled_ensemble.yaml")])
    train_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 training of the tiled ensemble.
tests/integration/pipelines/test_tiled_ensemble.py