def METHOD_NAME(self):
    self.test_app = TethysApp.objects.get(package="test_app")
    # Create condor scheduler and assign to condor setting
    self.condor_scheduler = CondorScheduler(
        name="test_condor_scheduler",
        host="https://example.com",
        port="33",
        username="condor",
        password="password",
        private_key_path="/path/to/some/key",
        private_key_pass="secret",
    )
    self.condor_scheduler.save()
    self.condor_setting = self.test_app.settings_set.select_subclasses().get(
        name="primary_condor"
    )
    self.condor_setting.scheduler_service = self.condor_scheduler
    self.condor_setting.required = True
    self.condor_setting.save()
    # Create dask scheduler and assign to dask setting
    self.dask_scheduler = DaskScheduler(
        name="test_dask_scheduler",
        host="https://example.com",
        timeout=5,
        heartbeat_interval=1,
        dashboard="https://example.com/dashboard",
    )
    self.dask_scheduler.save()
    self.dask_setting = self.test_app.settings_set.select_subclasses().get(
        name="primary_dask"
    )
    self.dask_setting.scheduler_service = self.dask_scheduler
    self.dask_setting.required = False
    self.dask_setting.save()