Correcting date format error
This commit is contained in:
parent
f57bc6a95f
commit
475ef4777d
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user