4 Star 25 Fork 544

zhiyoucai / Lepus

forked from 茹憶 / Lepus 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
test_check_mysql.py 673 Bytes
Copy Edit Web IDE Raw Blame History
#!/bin/env python
# -*-coding:utf-8-*-
import unittest
import pymysql
from check_mysql import check_mysql
class TestCheckMysql(unittest.TestCase):
def setUp(self):
self.conn = pymysql.connect(host='127.0.0.1',
port=3306,
user='root',
passwd='test123')
def test_check_mysql(self):
check_mysql(host='127.0.0.1',
port='3306',
username='root',
password='test123',
server_id='1',
tags='test')
if __name__ == '__main__':
unittest.main()

Comment ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/zhiyoucai/Lepus.git
git@gitee.com:zhiyoucai/Lepus.git
zhiyoucai
Lepus
Lepus
master

Search