class_docstr: Unit tests for the ``rydberg_drive`` function
docstr: Test that the correct error is raised if both amplitude and detuning are trivial.
docstr_tok: ["Test","that","the","correct","error","is","raised","if","both","amplitude","and","detuning","are","trivial","."]
code: def test_no_amplitude_no_detuning(self):
      """Test that the correct error is raised if both amplitude and detuning are trivial."""
      with pytest.raises(
          ValueError,
          match="Expected non-zero value for at least one of either",
      ):
          _ = rydberg_drive(0, np.pi, 0, wires=[0])
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.pulse import rydberg_interaction, rydberg_drive
  from pennylane.pulse.hardware_hamiltonian import HardwareHamiltonian, HardwarePulse, AmplitudeAndPhase
  from pennylane.wires import Wires
  from pennylane.pulse.rydberg import RydbergSettings
label_desc: Use image node_id 5 for calling the TestRydbergDrive obj's underlying member method code with example usage: obj.test_no_amplitude_no_detuning() without return types