async def test_stop_not_running(self):
        """Test stopping the scheduler when it's not running."""
        scheduler = PlatformScheduler()
        scheduler.running = False
        scheduler.task = None

        await scheduler.stop()

        # Nothing should happen
        assert scheduler.running is False
        assert scheduler.task is None
Test stopping the scheduler when it's not running.
backend/tests/unit/platform/test_scheduler.py