def test_job_results(self, get_redis):
        """Try to provide job results. It should not crash."""
        mock_redis = mock.Mock()
        mock_redis.get.return_value = 1
        get_redis.return_value = mock_redis
        job_id = 34
        url = f"/dalton/sensor_api/results/{job_id}"
        job_results = {"status": "1"}
        data = dict(json_data=json.dumps(job_results))
        res = self.client.post(url, data=data)
        self.assertEqual(res.status_code, 200)
Try to provide job results. It should not crash.
tests/test_dalton.py