smartpush 2.1.2__py3-none-any.whl → 2.1.4__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 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
- crowd_person_uids = [person["uid"] for person in crowd_persons["responseResult"]]
77
- print("expected_ids", expected_ids, type(expected_ids))
78
- print("crowd_person_uids", crowd_person_uids, type(crowd_person_uids))
79
- result["联系人断言"] = ListDictUtils.check_values_in_list_set(a=expected_ids, b=crowd_person_uids)
76
+ if expected_ids is not None:
77
+ crowd_person_ids = [person["id"] for person in crowd_persons["responseResult"]]
78
+ print("expected_ids", expected_ids, type(expected_ids))
79
+ print("crowd_person_ids", crowd_person_ids, type(crowd_person_ids))
80
+ result["联系人断言"] = ListDictUtils.check_values_in_list_set(a=expected_ids, b=crowd_person_ids)
81
+ else:
82
+ result["联系人断言"] = [True, "接口返回正常"]
80
83
  return result
81
84
 
82
85
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpush
3
- Version: 2.1.2
3
+ Version: 2.1.4
4
4
  Summary: 用于smartpush自动化测试工具包
5
5
  Author: lulu、felix、long
6
6
 
@@ -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,7 +9,7 @@ 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=jxX8svt6bRytGLSYiZbCn5RnE7OiRZH0QGgPawlMhMU,10646
12
+ smartpush/crowd/crowd.py,sha256=T-TixGaa_1CkE5RVGiGPtv-pq9pat7cX5YCoPq-xnpk,10781
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
@@ -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.2.dist-info/METADATA,sha256=rkrfme3QyLE6FAIF6mAZpMu0c580AnO5hi6U1YwFpWs,131
42
- smartpush-2.1.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
43
- smartpush-2.1.2.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
44
- smartpush-2.1.2.dist-info/RECORD,,
40
+ smartpush-2.1.4.dist-info/METADATA,sha256=N6bId6a4Hnp9tkRRCFsAPOc805HBAGYlKHaDQG76kXo,131
41
+ smartpush-2.1.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
42
+ smartpush-2.1.4.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
43
+ smartpush-2.1.4.dist-info/RECORD,,
smartpush/test.py DELETED
File without changes