class_docstr: Tests worker service.
class_docstr_tok: ["Tests","worker","service","."]
code: def test_should_add_component_specific_labels(self):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "workers": {
                  "labels": {"test_label": "test_label_value"},
              },
          },
          show_only=["templates/workers/worker-service.yaml"],
      )
  
      assert "test_label" in jmespath.search("metadata.labels", docs[0])
      assert (
          jmespath.search("metadata.labels", docs[0])["test_label"]
          == "test_label_value"
      )
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
  from tests.charts.log_groomer import LogGroomerTestBase
label_desc: Use image node_id 1 for calling the TestWorkerService obj's underlying member method code with example usage: obj.test_should_add_component_specific_labels() without return types