Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jk_interface_test
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangqiang
jk_interface_test
Commits
0d07f2e1
Commit
0d07f2e1
authored
May 19, 2021
by
蒲肖建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区域广告、公司广告脚本实现提交2021/5/19
parent
00d27086
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
121 additions
and
1 deletion
+121
-1
defalut_account.py
script/defalut_account.py
+1
-1
banner_area_data.py
.../ji_yun_ying_pc/marketing/data_config/banner_area_data.py
+41
-0
banner_org_data.py
...t/ji_yun_ying_pc/marketing/data_config/banner_org_data.py
+62
-0
test_banner_area.py
script/ji_yun_ying_pc/marketing/test_banner_area.py
+0
-0
test_banner_org.py
script/ji_yun_ying_pc/marketing/test_banner_org.py
+0
-0
public_asserts.py
script/public_asserts.py
+17
-0
No files found.
script/defalut_account.py
View file @
0d07f2e1
...
...
@@ -27,7 +27,7 @@ accounts = {
# 极运营默认账号
"jyy_account"
:
{
"account"
:
"15208176554"
,
"password"
:
"
88888888
"
"password"
:
"
xj15208176554
"
},
# 极运营app默认账号
"jyy_app_account"
:
{
...
...
script/ji_yun_ying_pc/marketing/data_config/banner_area_data.py
View file @
0d07f2e1
...
...
@@ -22,3 +22,44 @@ status = [
"status"
:
"DISABLED"
}
]
title
=
[
{
"title"
:
"新增"
},
{
"title"
:
"广告"
}
]
titleexcpet
=
[
{
"title"
:
" "
},
{
"title"
:
"输入不是banner中包含的字"
},
{
"title"
:
"@#$^&"
}
]
pageNum
=
[
{
"pageNum"
:
1
},
{
"pageNum"
:
2
},
{
"pageNum"
:
3
}
]
pageSize
=
[
{
"pageSize"
:
10
},
{
"pageSize"
:
20
},
{
"pageSize"
:
50
}
]
script/ji_yun_ying_pc/marketing/data_config/banner_org_data.py
0 → 100644
View file @
0d07f2e1
areas
=
[
{
"area_data"
:
[
3364
]
},
{
"area_data"
:
[
3103
,
3159
,
3364
,
3016
,
3017
,
3018
]
}
]
platform
=
[
{
"platform_type"
:
"APP"
,
},
{
"platform_type"
:
"APPLET"
,
}
]
status
=
[
{
"status"
:
"ENABLED"
},
{
"status"
:
"DISABLED"
}
]
title
=
[
{
"title"
:
"新增"
},
{
"title"
:
"广告"
}
]
titleexcpet
=
[
{
"title"
:
"输入不是banner中包含的字"
},
{
"title"
:
"@#$^&"
}
]
pageNum
=
[
{
"pageNum"
:
1
},
{
"pageNum"
:
2
},
{
"pageNum"
:
3
}
]
pageSize
=
[
{
"pageSize"
:
10
},
{
"pageSize"
:
20
},
{
"pageSize"
:
50
}
]
script/ji_yun_ying_pc/marketing/test_banner_area.py
View file @
0d07f2e1
This diff is collapsed.
Click to expand it.
script/ji_yun_ying_pc/marketing/test_banner_org.py
0 → 100644
View file @
0d07f2e1
This diff is collapsed.
Click to expand it.
script/public_asserts.py
View file @
0d07f2e1
...
...
@@ -72,3 +72,20 @@ def assert_res_field_in_list(data_list: list, value_list: list):
else
:
flag
=
False
return
flag
# @allure.step("断言两个数组是否有交集")
def
assert_two_list_is_intersection
(
res_list
:
list
,
search_list
:
list
):
if
res_list
:
err_values
=
set
(
res_list
)
.
intersection
(
set
(
search_list
))
if
err_values
:
flag
=
True
else
:
flag
=
False
else
:
flag
=
False
return
flag
print
(
assert_two_list_is_intersection
([
1
,
2
,
3
],
[
6
,
4
,
5
]))
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