class_docstr: Tests integration behavior with 'default.gaussian'.
  
  Integration with several `QubitDevice`-inherited devices are tested in the
  device suite. Using `default.gaussian`, we test one that inherits from `Device`.
class_docstr_tok: ["Tests","integration","behavior","with","'default.gaussian","'",".","Integration","with","several","`","QubitDevice","`","-inherited","devices","are","tested","in","the","device","suite",".","Using","`","default.gaussian","`",",","we","test","one","that","inherits","from","`","Device","`","."]
docstr: Test correct behavior with single circuit execution
docstr_tok: ["Test","correct","behavior","with","single","circuit","execution"]
code: def test_single_execution_default(self, circuit, mocker):
      """Test correct behavior with single circuit execution"""
  
      # pylint: disable=too-few-public-methods
      class callback_wrapper:
          @staticmethod
          def callback(totals=None, history=None, latest=None):
              pass
  
      wrapper = callback_wrapper()
      spy = mocker.spy(wrapper, "callback")
  
      with Tracker(
          circuit.device, callback=wrapper.callback
      ) as tracker:
          circuit()
          circuit()
  
      assert tracker.totals == {"executions": 2}
      assert tracker.history == {
          "executions": [1, 1],
          "shots": [None, None],
      }
      assert tracker.latest == {"executions": 1, "shots": None}
  
      _, kwargs_called = spy.call_args_list[-1]
  
      assert kwargs_called["totals"] == {"executions": 2}
      assert kwargs_called["history"] == {
          "executions": [1, 1],
          "shots": [None, None],
      }
      assert kwargs_called["latest"] == {"executions": 1, "shots": None}
  
file_path: pennylane/tests/test_tracker.py
imports: import pytest
  import pennylane
  from pennylane import Tracker
label_desc: Use image node_id 1 for calling the TestDefaultTrackerIntegration obj's underlying member method code with example usage: obj.test_single_execution_default(circuit, mocker) without return types