class_docstr: Test the device is created with the expected properties.
class_docstr_tok: ["Test","the","device","is","created","with","the","expected","properties","."]
docstr: Test that non-analytic devices cannot accept 0 shots.
docstr_tok: ["Test","that","non-analytic","devices","can","not","accept","0","shots","."]
code: def test_no_0_shots(self, device_kwargs):
      """Test that non-analytic devices cannot accept 0 shots."""
      # first create a valid device to extract its capabilities
      device_kwargs["wires"] = 2
      device_kwargs["shots"] = 0
  
      with pytest.raises(
          DeviceError, match="The specified number of shots needs to be"
      ):
          qml.device(**device_kwargs)
  
file_path: pennylane/pennylane/devices/tests/test_properties.py
imports: import pytest
  import pennylane.numpy
  import pennylane
  from pennylane._device import DeviceError
label_desc: Use image node_id 3 for calling the TestDeviceProperties obj's underlying member method code with example usage: obj.test_no_0_shots(device_kwargs) without return types