Skip to content

Commit 0891b60

Browse files
authored
python better datetime test (#14742)
1 parent cb20e74 commit 0891b60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/client/echo_api/python-nextgen/test/test_manual.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ def testDateTimeQueryWithDateTime(self):
4141

4242
def testDateTimeQueryWithString(self):
4343
api_instance = openapi_client.QueryApi()
44-
datetime_query = '2013-10-20T19:20:30+01:00' # datetime | (optional)
44+
datetime_query = '19:20:30 2013-10-20' # datetime | (optional)
4545
date_query = '2013-10-20' # date | (optional)
4646
string_query = 'string_query_example' # str | (optional)
4747

4848
# Test query parameter(s)
4949
api_response = api_instance.test_query_datetime_date_string(datetime_query=datetime_query, date_query=date_query, string_query=string_query)
5050
e = EchoServerResponseParser(api_response)
51-
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")
51+
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")
5252

5353
class EchoServerResponseParser():
5454
def __init__(self, http_response):

0 commit comments

Comments
 (0)