class_docstr: Test that errors are raised e.g. for invalid inputs.
docstr: Tests that an error is raised if neither information about the number
  of frequencies nor about the spectrum is given to ``reconstruct``.
docstr_tok: ["Tests","that","an","error","is","raised","if","neither","information","about","the","number","of","frequencies","nor","about","the","spectrum","is","given","to","``","reconstruct","``","."]
code: def test_nums_frequency_and_spectra_missing(self):
      """Tests that an error is raised if neither information about the number
      of frequencies nor about the spectrum is given to ``reconstruct``.
      """
      with pytest.raises(
          ValueError,
          match="Either nums_frequency or spectra must be given.",
      ):
          reconstruct(dummy_qnode)
  
imports: from inspect import signature
  from itertools import chain
  from functools import reduce
  import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.fourier.reconstruct import _reconstruct_equ, _reconstruct_gen, _prepare_jobs, reconstruct
  from pennylane.fourier.utils import join_spectra
label_desc: Use image node_id 1 for calling the TestErrors obj's underlying member method code with example usage: obj.test_nums_frequency_and_spectra_missing() without return types