smartpush 2.1.1__py3-none-any.whl → 2.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- smartpush/crowd/crowd.py +8 -5
- smartpush/export/basic/ExcelExportChecker.py +1 -1
- {smartpush-2.1.1.dist-info → smartpush-2.1.3.dist-info}/METADATA +1 -1
- {smartpush-2.1.1.dist-info → smartpush-2.1.3.dist-info}/RECORD +6 -7
- smartpush/test.py +0 -0
- {smartpush-2.1.1.dist-info → smartpush-2.1.3.dist-info}/WHEEL +0 -0
- {smartpush-2.1.1.dist-info → smartpush-2.1.3.dist-info}/top_level.txt +0 -0
smartpush/crowd/crowd.py
CHANGED
|
@@ -61,7 +61,7 @@ class Crowd(CrowdRequestBase):
|
|
|
61
61
|
resultData = result['resultData']
|
|
62
62
|
return resultData
|
|
63
63
|
|
|
64
|
-
def check_crowd(self, expected_rule, expected_ids, sleep=5):
|
|
64
|
+
def check_crowd(self, expected_rule, expected_ids=None, sleep=5):
|
|
65
65
|
"""校验群组结果"""
|
|
66
66
|
result = {}
|
|
67
67
|
# 校验群组详情条件
|
|
@@ -73,10 +73,13 @@ class Crowd(CrowdRequestBase):
|
|
|
73
73
|
# 校验群组筛选人群
|
|
74
74
|
time.sleep(sleep)
|
|
75
75
|
crowd_persons = self.callCrowdPersonListInPackage()
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
if expected_ids is not None:
|
|
77
|
+
crowd_person_uids = [person["uid"] for person in crowd_persons["responseResult"]]
|
|
78
|
+
print("expected_ids", expected_ids, type(expected_ids))
|
|
79
|
+
print("crowd_person_uids", crowd_person_uids, type(crowd_person_uids))
|
|
80
|
+
result["联系人断言"] = ListDictUtils.check_values_in_list_set(a=expected_ids, b=crowd_person_uids)
|
|
81
|
+
else:
|
|
82
|
+
result["联系人断言"] = [True, "接口返回正常"]
|
|
80
83
|
return result
|
|
81
84
|
|
|
82
85
|
|
|
@@ -340,7 +340,7 @@ def get_header_map_data(name_list):
|
|
|
340
340
|
"sendTypeName": "活动类型",
|
|
341
341
|
"activityName": "活动名称",
|
|
342
342
|
"sendTotal": "发送数",
|
|
343
|
-
"deliveryTotal": "
|
|
343
|
+
"deliveryTotal": "送达数", # 原本是送达人数
|
|
344
344
|
"deliveryRate": "送达率",
|
|
345
345
|
"openRate": ["打开率(打开数/送达数)", "打开次数"],
|
|
346
346
|
# "openRate": "打开率(打开数/送达数)",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
smartpush/__init__.py,sha256=XJrl1vhGATHSeSVqKmPXxYqxyseriUpvY5tLIXir3EE,24
|
|
2
2
|
smartpush/get_jira_info.py,sha256=s3hPwC6KePS5BtqNS9o15eCh7Nx2gn16bn6tfYK0iQI,18112
|
|
3
|
-
smartpush/test.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
3
|
smartpush/account/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
4
|
smartpush/account/operate_account.py,sha256=nzJLLAEwNElavZeWVqnA_MSGTBzQrSrknmezYBwtvWs,1525
|
|
6
5
|
smartpush/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -10,13 +9,13 @@ smartpush/base/url_enum.py,sha256=47XCczKEvTcO6Ap4VbEfV7K_S0t2xu3O434sHqwycE4,28
|
|
|
10
9
|
smartpush/contacts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
10
|
smartpush/contacts/contacts.py,sha256=JssmzyHmFF6TeIKpFH6VvGC5abBXOzkSwZrAWA8v8a8,1718
|
|
12
11
|
smartpush/crowd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
smartpush/crowd/crowd.py,sha256=
|
|
12
|
+
smartpush/crowd/crowd.py,sha256=IAwzmAsYe4hNM_CqNXMs4bUmLqeR7bOaobBA8jTf4ao,10787
|
|
14
13
|
smartpush/email/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
14
|
smartpush/email/activity.py,sha256=rQ62GIfg0Yh0fFkwiaRIVATBn5vY1wZzbLEJLwHmx1E,10016
|
|
16
15
|
smartpush/email/schema.py,sha256=mysik-N6cry4HuSxzMMhQFsnnu5_UJ_oqVPTGY1RUkQ,31471
|
|
17
16
|
smartpush/email/universal_content.py,sha256=bST0RCVN4YUglrsCv0OsIox7vceEvJRVkqcMaEgj9No,17226
|
|
18
17
|
smartpush/export/__init__.py,sha256=D9GbWcmwnetEndFDty5XbVienFK1WjqV2yYcQp3CM84,99
|
|
19
|
-
smartpush/export/basic/ExcelExportChecker.py,sha256=
|
|
18
|
+
smartpush/export/basic/ExcelExportChecker.py,sha256=FAO7jfnJApH_SXINIRxvlyW3FdV5iJiO4NQF3DeI59A,21505
|
|
20
19
|
smartpush/export/basic/GetOssUrl.py,sha256=zxNZj6x7Ph9N3P5k82pLpBFjZxKrDfbgqS2fTYyhvso,8467
|
|
21
20
|
smartpush/export/basic/ReadExcel.py,sha256=SbVRBKd4Y1UPUXXnvyQ3J6WtZLinwTCYpBos1D6_wtU,8921
|
|
22
21
|
smartpush/export/basic/__init__.py,sha256=6tcrS-2NSlsJo-UwEsnGUmwCf7jgOsh_UEbM0FD-gYE,70
|
|
@@ -38,7 +37,7 @@ smartpush/utils/StringUtils.py,sha256=n8mo9k0JQN63MReImgv-66JxmmymOGknR8pH2fkQrA
|
|
|
38
37
|
smartpush/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
38
|
smartpush/utils/date_utils.py,sha256=Xgx2DbmWYri71xXBiaKYTZDeh2a8MFhYns_xB0U2JOA,13159
|
|
40
39
|
smartpush/utils/form_utils.py,sha256=ld-g_Dm_ZlnagQt7imYfUc87bcBRVlTctywuLtzmjXQ,849
|
|
41
|
-
smartpush-2.1.
|
|
42
|
-
smartpush-2.1.
|
|
43
|
-
smartpush-2.1.
|
|
44
|
-
smartpush-2.1.
|
|
40
|
+
smartpush-2.1.3.dist-info/METADATA,sha256=P0DMMKDLIijn5-ENVHcsRux4cBQQoXxV2PR5iopxUSc,131
|
|
41
|
+
smartpush-2.1.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
42
|
+
smartpush-2.1.3.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
|
|
43
|
+
smartpush-2.1.3.dist-info/RECORD,,
|
smartpush/test.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|