class_docstr: Test ResidualPlot visualizer
class_docstr_tok: ["Test","ResidualPlot","visualizer"]
docstr: Ensure the quick method requires both X_test and y_test if one specified
docstr_tok: ["Ensure","the","quick","method","requires","both","X_test","and","y_test","if","one","specified"]
code: def test_residuals_quick_method_missing_data(self):
      """
      Ensure the quick method requires both X_test and y_test if one specified
      """
      msg = "both X_test and y_test are required if one is specified"
      with pytest.raises(YellowbrickValueError, match=msg):
          residuals_plot(
              Lasso(),
              self.data.X.train,
              self.data.y.train,
              self.data.X.test,
              show=False,
          )
  
imports: import sys
  import pytest
  import matplotlib
  import matplotlib.pyplot
  from yellowbrick.datasets import load_energy
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.regressor.residuals import ResidualsPlot, residuals_plot
  from unittest import mock
  from tests.fixtures import Dataset, Split
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.datasets import make_regression
  from sklearn.linear_model import Ridge, Lasso
  from sklearn.neural_network import MLPRegressor
  from sklearn.linear_model import LinearRegression
  from sklearn.model_selection import train_test_split
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import MinMaxScaler
label_desc: Use image node_id 9 for calling the TestResidualsPlot obj's underlying member method code with example usage: obj.test_residuals_quick_method_missing_data() without return types