class_docstr: Test resolve_colors helper function
class_docstr_tok: ["Test","resolve_colors","helper","function"]
docstr: Assert that colors overrides a yellowbrick colormap if both are provided
docstr_tok: ["Assert","that","colors","overrides","a","yellowbrick","colormap","if","both","are","provided"]
code: def test_colormap_palette_yb_colors(self):
      """
      Assert that colors overrides a yellowbrick colormap if both are provided
      """
      colormap = ColorPalette("neural_paint")
      overriding_colors = [
          (0.0, 0.0, 0.0, 1.0),
          (0.0, 0.6444666666666666, 0.7333666666666667, 1.0),
          (0.7999666666666666, 0.9777666666666667, 0.0, 1.0),
          (0.8, 0.8, 0.8, 1.0),
      ]
      with pytest.warns(
          Warning, match="both colormap and colors specified"
      ):
          colors = resolve_colors(
              colormap=colormap, colors=overriding_colors
          )
          assert colors == overriding_colors
  
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 13 for calling the TestResolveColors obj's underlying member method code with example usage: obj.test_colormap_palette_yb_colors() without return types