From c1b6edd49308b86cdce4cbb54c959159303e632f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20HUBSCHER?= Date: Fri, 30 Oct 2015 09:59:00 +0100 Subject: [PATCH 1/2] Fix english typo in error message. r? @stuartphilp --- cliquet/views/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliquet/views/errors.py b/cliquet/views/errors.py index 7afe9a04..cd8e8096 100644 --- a/cliquet/views/errors.py +++ b/cliquet/views/errors.py @@ -53,7 +53,7 @@ def page_not_found(request): """Return a JSON 404 error response.""" if request.path.startswith('/' + request.registry.route_prefix): errno = ERRORS.MISSING_RESOURCE - error_msg = "The resource your are looking for could not be found." + error_msg = "The resource you are looking for could not be found." else: errno = ERRORS.VERSION_NOT_AVAILABLE error_msg = ("The requested protocol version is not available " From dca42f881b4a4ddd7673825f69941607fdb48db1 Mon Sep 17 00:00:00 2001 From: Mathieu Leplatre Date: Fri, 30 Oct 2015 10:49:11 +0100 Subject: [PATCH 2/2] Fix tests :) --- cliquet/tests/test_views_errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliquet/tests/test_views_errors.py b/cliquet/tests/test_views_errors.py index f752ff0a..00701fd0 100644 --- a/cliquet/tests/test_views_errors.py +++ b/cliquet/tests/test_views_errors.py @@ -46,7 +46,7 @@ def test_404_is_valid_formatted_error(self): response = self.app.get('/unknown', status=404) self.assertFormattedError( response, 404, ERRORS.MISSING_RESOURCE, "Not Found", - "The resource your are looking for could not be found.") + "The resource you are looking for could not be found.") def test_401_is_valid_formatted_error(self): response = self.app.get(self.sample_url, status=401)