From 6e4545f0b7c1ae2faf3eac346b2b8ae798bc2d5c Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 22 Jun 2020 19:15:08 +0800 Subject: [PATCH] test more client functions. --- tests/pytest/client/client.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/pytest/client/client.py b/tests/pytest/client/client.py index b3a93bd363..21df7e6a86 100644 --- a/tests/pytest/client/client.py +++ b/tests/pytest/client/client.py @@ -26,9 +26,20 @@ class TDTestCase: tdSql.prepare() ret = tdSql.query('select database()') - tdSql.checkData(0, 0, "db") + ret = tdSql.query('select server_version()') + tdSql.checkData(0, 0, "2.0.0.0") + + ret = tdSql.query('select client_version()') + tdSql.checkData(0, 0, "2.0.0.0") + + ret = tdSql.query('select server_status()') + tdSql.checkData(0, 0, 1) + + ret = tdSql.query('select server_status() as result') + tdSql.checkData(0, 0, 1) + def stop(self): tdSql.close() tdLog.success("%s successfully executed" % __file__) -- GitLab