class_docstr: Tests worker.
class_docstr_tok: ["Tests","worker","."]
code: def test_logs_persistence_changes_volume(
      self, log_values, expected_volume
  ):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "workers": {"persistence": {"enabled": False}},
              "logs": log_values,
          },
          show_only=["templates/workers/worker-deployment.yaml"],
      )
  
      assert {"name": "logs", **expected_volume} in jmespath.search(
          "spec.template.spec.volumes", docs[0]
      )
  
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 22 for calling the TestWorker obj's underlying member method code with example usage: obj.test_logs_persistence_changes_volume(log_values, expected_volume) without return types