diff --git a/mock/utils/mock_service.py b/mock/utils/mock_service.py index 8e2b155..ffc77cd 100644 --- a/mock/utils/mock_service.py +++ b/mock/utils/mock_service.py @@ -32,7 +32,7 @@ def mock(_ip, _api, **kwargs): if mock_data is not None: return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False}) else: - bypass(kwargs.get('request')) + return bypass(kwargs.get('request')) if _api == 'validError': mock_data = valid_error_tmp.get() return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False})