Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test64_apitest_syf
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
demo1
test64_apitest_syf
Commits
83e69fb3
Commit
83e69fb3
authored
Jan 02, 2025
by
demo1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api autotest v 0.2
parent
396a2719
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
APIAutoTest_3/common/db.py
+6
-6
No files found.
APIAutoTest_3/common/db.py
View file @
83e69fb3
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
import
pymysql
import
pymysql
from
APIAutoTest_3
import
log_decorator
from
APIAutoTest_3
import
log_decorator
from
APIAutoTest_
v
3.common.read_basic_ini
import
ReadBasicIni
from
APIAutoTest_3.common.read_basic_ini
import
ReadBasicIni
class
DB
:
class
DB
:
...
@@ -18,11 +18,11 @@ class DB:
...
@@ -18,11 +18,11 @@ class DB:
def
__init__
(
self
):
def
__init__
(
self
):
ini
=
ReadBasicIni
()
ini
=
ReadBasicIni
()
self
.
conn
=
pymysql
.
connect
(
self
.
conn
=
pymysql
.
connect
(
host
=
ini
.
get_
database_conn_msg
(
"host"
),
host
=
ini
.
get_
sql_connect
(
"host"
),
port
=
int
(
ini
.
get_
database_conn_msg
(
"port"
)),
port
=
int
(
ini
.
get_
sql_connect
(
"port"
)),
user
=
ini
.
get_
database_conn_msg
(
"user"
),
user
=
ini
.
get_
sql_connect
(
"user"
),
password
=
ini
.
get_
database_conn_msg
(
"pwd"
),
password
=
ini
.
get_
sql_connect
(
"pwd"
),
database
=
ini
.
get_
database_conn_msg
(
"database"
),
database
=
ini
.
get_
sql_connect
(
"database"
),
charset
=
"utf8"
charset
=
"utf8"
)
)
self
.
cursor
=
self
.
conn
.
cursor
()
self
.
cursor
=
self
.
conn
.
cursor
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment