Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bozhong钟波
interface
Commits
22f02923
Commit
22f02923
authored
Sep 06, 2023
by
“xbozhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试1
parent
b443bed8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
handle_config.py
Common/handle_config.py
+4
-1
test_talented_Person.py
TestCases/test_talented_Person.py
+2
-1
No files found.
Common/handle_config.py
View file @
22f02923
import
os.path
from
configparser
import
ConfigParser
from
configparser
import
ConfigParser
from
Common.handle_path
import
conf_dir
from
Common.handle_path
import
conf_dir
...
@@ -18,10 +19,12 @@ class HandleConfig(ConfigParser):
...
@@ -18,10 +19,12 @@ class HandleConfig(ConfigParser):
fp
.
close
()
fp
.
close
()
file_path
=
conf_dir
+
"
\\
config.ini"
file_path
=
os
.
path
.
join
(
conf_dir
,
'config.ini'
)
conf
=
HandleConfig
(
file_path
)
conf
=
HandleConfig
(
file_path
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
name
=
conf
.
get
(
"userInfo"
,
"mobile_phone"
)
name
=
conf
.
get
(
"userInfo"
,
"mobile_phone"
)
print
(
name
)
print
(
name
)
# conf.write_data("18178945612")
# conf.write_data("18178945612")
print
(
file_path
)
TestCases/test_talented_Person.py
View file @
22f02923
import
os.path
import
pytest
import
pytest
from
Common.handle_excel
import
HandleExcel
from
Common.handle_excel
import
HandleExcel
...
@@ -27,7 +28,7 @@ def get_newPhone():
...
@@ -27,7 +28,7 @@ def get_newPhone():
class
TestTalentedPerson
:
class
TestTalentedPerson
:
# 第一步,读取excel中的数据
# 第一步,读取excel中的数据
exc
=
HandleExcel
(
datas_dir
+
"
\\
接口业务流.xlsx"
,
"优才"
)
exc
=
HandleExcel
(
os
.
path
.
join
(
datas_dir
,
"接口业务流.xlsx"
)
,
"优才"
)
cases
=
exc
.
read_all_datas
()
cases
=
exc
.
read_all_datas
()
# 关闭excel
# 关闭excel
exc
.
close_file
()
exc
.
close_file
()
...
...
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