class_docstr: Test the PrecisionRecallCurve visualizer
class_docstr_tok: ["Test","the","PrecisionRecallCurve","visualizer"]
docstr: Test quick method when test data is missing.
docstr_tok: ["Test","quick","method","when","test","data","is","missing","."]
code: def test_missing_test_data_in_quick_method(self):
      """
      Test quick method when test data is missing.
      """
      X, y = load_occupancy(return_dataset=True).to_numpy()
  
      X_train, X_test, y_train, y_test = tts(
          X, y, test_size=0.2, shuffle=True, random_state=55555
      )
  
      emsg = "both X_test and y_test are required if one is specified"
  
      with pytest.raises(YellowbrickValueError, match=emsg):
          precision_recall_curve(
              RandomForestClassifier(),
              X_train,
              y_train,
              y_test=y_test,
              show=False,
          )
  
      with pytest.raises(YellowbrickValueError, match=emsg):
          precision_recall_curve(
              RandomForestClassifier(),
              X_train,
              y_train,
              X_test,
              show=False,
          )
  
imports: import sys
  import pytest
  import matplotlib
  from yellowbrick.exceptions import *
  from yellowbrick.classifier.prcurve import *
  from yellowbrick.datasets import load_occupancy
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from .test_rocauc import FakeClassifier
  from sklearn.svm import LinearSVC, SVC
  from sklearn.naive_bayes import GaussianNB
  from sklearn.datasets import make_regression
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.linear_model import RidgeClassifier
  from sklearn.model_selection import train_test_split
  from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import MinMaxScaler
label_desc: Use image node_id 14 for calling the TestPrecisionRecallCurve obj's underlying member method code with example usage: obj.test_missing_test_data_in_quick_method() without return types