class_docstr: Testing the tracking capabilities of DefaultQubit.
class_docstr_tok: ["Testing","the","tracking","capabilities","of","DefaultQubit","."]
docstr: Test that the tracker is not updated if not active.
docstr_tok: ["Test","that","the","tracker","is","not","updated","if","not","active","."]
code: def test_tracker_not_updated_if_not_active(self):
      """Test that the tracker is not updated if not active."""
      dev = qml.device("default.qubit")
      assert len(dev.tracker.totals) == 0
  
      dev.execute(qml.tape.QuantumScript())
      assert len(dev.tracker.totals) == 0
      assert len(dev.tracker.history) == 0
  
file_path: pennylane/tests/devices/test_default_qubit_tracking.py
imports: import pytest
  import numpy
  import pennylane
  from pennylane.resource import Resources
  from pennylane.devices import ExecutionConfig
label_desc: Use image node_id 2 for calling the TestTracking obj's underlying member method code with example usage: obj.test_tracker_not_updated_if_not_active() without return types