From 0891b6056fb2a5f3198f70291488688f8a57fbf4 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 19 Feb 2023 16:48:36 +0800 Subject: [PATCH] python better datetime test (#14742) --- samples/client/echo_api/python-nextgen/test/test_manual.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/client/echo_api/python-nextgen/test/test_manual.py b/samples/client/echo_api/python-nextgen/test/test_manual.py index 806911737c4..c738bdcd78a 100644 --- a/samples/client/echo_api/python-nextgen/test/test_manual.py +++ b/samples/client/echo_api/python-nextgen/test/test_manual.py @@ -41,14 +41,14 @@ class TestManual(unittest.TestCase): def testDateTimeQueryWithString(self): api_instance = openapi_client.QueryApi() - datetime_query = '2013-10-20T19:20:30+01:00' # datetime | (optional) + datetime_query = '19:20:30 2013-10-20' # datetime | (optional) date_query = '2013-10-20' # date | (optional) string_query = 'string_query_example' # str | (optional) # Test query parameter(s) api_response = api_instance.test_query_datetime_date_string(datetime_query=datetime_query, date_query=date_query, string_query=string_query) e = EchoServerResponseParser(api_response) - self.assertEqual(e.path, "/query/datetime/date/string?datetime_query=2013-10-20T19:20:30+01:00&date_query=2013-10-20&string_query=string_query_example") + self.assertEqual(e.path, "/query/datetime/date/string?datetime_query=19:20:30%202013-10-20&date_query=2013-10-20&string_query=string_query_example") class EchoServerResponseParser(): def __init__(self, http_response):