Correcting date format error

This commit is contained in:
Andrew Melton 2014-02-28 11:12:48 -05:00
parent f57bc6a95f
commit 475ef4777d
3 changed files with 2 additions and 2 deletions

View File

View File

@ -480,7 +480,7 @@ def get_event_stats(request):
raise BadRequestException(message="Invalid/absent query parameter")
except (ValueError, AttributeError):
raise BadRequestException(message="Invalid format for date (Correct "
"format should be %YYYY-%mm-%dd)")
"format should be %Y-%m-%d %H:%M:%S)")
def repair_stacktach_down(request):

View File

@ -1138,7 +1138,7 @@ class DBAPITestCase(StacktachBaseTestCase):
self.assertEqual(response.status_code, 400)
self.assertEqual(json.loads(response.content)['message'],
"Invalid format for date"
" (Correct format should be %YYYY-%mm-%dd)")
" (Correct format should be %Y-%m-%d %H:%M:%S)")
self.mox.VerifyAll()
def test_get_verified_count_wrong_service_returns_400(self):