Merge pull request #296 from ramielrowe/master

Correcting date format error
This commit is contained in:
Thomas Maddox 2014-02-28 10:19:48 -06:00
commit 7f3f2530f7
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):