def test_request_job(self, get_redis):
        """Try to request a job. It should not crash."""
        redis = mock.Mock()
        redis.lpop.return_value = None
        get_redis.return_value = redis
        versions = ["2.0.9", "3.0", "9.9.9"]
        for version in versions:
            url = f"/dalton/sensor_api/request_job?SENSOR_ENGINE_VERSION={version}"
            res = self.client.get(url)
            self.assertEqual(res.status_code, 200, res.data.decode())
Try to request a job. It should not crash.
tests/test_dalton.py