test_info.py 397 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
from taos.cinterface import *

from taos import *

import pytest

@pytest.fixture
def conn():
    return connect()

def test_client_info():
    print(taos_get_client_info())
    None

def test_server_info(conn):
    # type: (TaosConnection) -> None
    print(conn.client_info)
    print(conn.server_info)
    None

if __name__ == "__main__":
    test_client_info()
    test_server_info(connect())