class_docstr: Test resolve_colors helper function
class_docstr_tok: ["Test","resolve_colors","helper","function"]
docstr: Warns when both colormap and colors is used, colors is default
docstr_tok: ["Warns","when","both","colormap","and","colors","is","used",",","colors","is","default"]
code: def test_warning_on_colormap_and_colors_args(self):
      """
      Warns when both colormap and colors is used, colors is default
      """
      with pytest.warns(
          Warning, match="both colormap and colors specified"
      ):
          colors = resolve_colors(
              colormap="RdBu", colors=["r", "g", "b"]
          )
          assert colors == ["r", "g", "b"]
  
imports: import sys
  import pytest
  from matplotlib import cm
  from cycler import Cycler
  from sklearn.cluster import KMeans
  from sklearn.datasets import make_blobs
  from yellowbrick.style.colors import *
  from yellowbrick.style.palettes import ColorPalette, PALETTES
  from yellowbrick.cluster.silhouette import SilhouetteVisualizer
  from tests.base import VisualTestCase
label_desc: Use image node_id 4 for calling the TestResolveColors obj's underlying member method code with example usage: obj.test_warning_on_colormap_and_colors_args() without return types