def METHOD_NAME(y, external):
    fig = qa_view.display_line(
        series,
        log_y=y,
        markers_lines=dates,
        markers_scatter=dates,
        external_axes=external,
        title="Test",
    )
    if external:
        assert fig.__class__.__name__ == "OpenBBFigure"
    else:
        assert fig.__class__.__name__ == "MagicMock"