code: def test_inactive_job(self, scheduler):
      # create job
      self.run_sql("create job j1 (select * from models)")
  
      # check jobs table
      ret = self.run_sql("select * from jobs")
      assert len(ret) == 1, "should be 1 job"
  
      # deactivate
      job = self.db.Jobs.query.filter(self.db.Jobs.name == "j1").first()
      job.active = False
      self.db.session.commit()
  
      # run scheduler
      scheduler.check_timetable()
  
      ret = self.run_sql("select * from jobs_history")
      # no history
      assert len(ret) == 0
  
imports: from unittest.mock import patch
  import datetime
  import time
  import pytest
  import pandas
  from mindsdb_sql import parse_sql
  from .executor_test_base import BaseExecutorDummyML
label_desc: Use image node_id 3 for calling the TestJobs obj's underlying member method code with example usage: obj.test_inactive_job(scheduler) without return types