why is there a different result for the command in the console and why a different one in unitTest?
I want to check the status of the schedule
class TestScheduler(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_checkIfschedulerIsActivate(self):
command = f"bench --site {frappe.local.site} scheduler status"
result = subprocess.run(command, shell=True, capture_output=True, text=True)
status_output = result.stdout.strip()
self.assertIn("enabled", status_output )
in console i have enabled but in test status is disabled
i also try with command
f"bench --site {frappe.local.site} execute frappe.utils.scheduler.get_scheduler_status"