smartpush 1.5.6__py3-none-any.whl → 1.5.7__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.
@@ -26,7 +26,6 @@ class FormAfter(FormRequestBase):
26
26
  persons_list = result["resultData"]["reportDetailData"]["datas"]
27
27
  return persons_list
28
28
 
29
-
30
29
  def callGetFormReportDetail(self):
31
30
  requestParam = {"formId": self.form_id}
32
31
  result = self.request(method=URL.getFormReportDetail.method, path=URL.getFormReportDetail.url,
@@ -77,7 +76,7 @@ class FormAfter(FormRequestBase):
77
76
 
78
77
  def callDeleteForm(self, merchant_id):
79
78
  requestParam = {"formId": self.form_id, "merchant_id": merchant_id}
80
- result = self.request(method=URL.deleteForm.method,url=URL.deleteForm.url, params=requestParam)
79
+ result = self.request(method=URL.deleteForm.method, path=URL.deleteForm.url, params=requestParam)
81
80
  assert result['code'] == 1
82
81
  print(f"删除id:{self.form_id}表单成功")
83
82
 
@@ -153,6 +152,7 @@ class FormAfter(FormRequestBase):
153
152
  def getCrowdPersonList(self, _id, page=1, pageSize=20, filter_type="email", filter_value=""):
154
153
  self.callCrowdPersonList(self, _id, page, pageSize, filter_type, filter_value)
155
154
 
155
+
156
156
  if __name__ == '__main__':
157
157
  heard = {
158
158
  'cookie': 'osudb_appid=SMARTPUSH;osudb_oar=#01#SID0000130BNXOsK5n5eE9jRh/qvw4GkPUL+3WXTwjU1L8VyW4x8OsSN2Z2/Dt4aoaLuvY8+7q9DWFuwOYuZEvYlUl28lCuZSliDRKgR25jsvr/a7AhjqltByzrs9QzPyaHJwgI1LND0Xt4QVU2c5FxQlCfex5;osudb_subappid=1;osudb_uid=4213785247;ecom_http_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTI2Mzg0NzUsImp0aSI6IjU3OTVkMTJkLTFkMDktNGRlZi1hOTFlLWVkNzVlYzRiYzk5YSIsInVzZXJJbmZvIjp7ImlkIjowL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BSMWB-mqkyxEsu6tB-7FVqt9nBhkxPAo;',
@@ -160,4 +160,5 @@ if __name__ == '__main__':
160
160
  'Content-Type': 'application/json'}
161
161
  host = 'https://test.smartpushedm.com/bff/api-em-ec2'
162
162
  after = FormAfter(form_id=19238, headers=heard, host=host)
163
- print(after.callGetFormInfo())
163
+ after.callDeleteForm('1644395920444')
164
+ # print(after.callGetFormInfo())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpush
3
- Version: 1.5.6
3
+ Version: 1.5.7
4
4
  Summary: 用于smartpush自动化测试工具包
5
5
  Author: lulu、felix、long
6
6
 
@@ -14,7 +14,7 @@ smartpush/export/basic/__init__.py,sha256=6tcrS-2NSlsJo-UwEsnGUmwCf7jgOsh_UEbM0F
14
14
  smartpush/flow/MockFlow.py,sha256=MI8WIMZyKlxrV5QVs8rXX6iD07Ldl37_L5Yb5FWqHzU,8595
15
15
  smartpush/flow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  smartpush/form/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- smartpush/form/form_after.py,sha256=j68HXkeCNCqjCkn3QFZbqutsKNMB7pLEzbuZPfFc2Q8,9395
17
+ smartpush/form/form_after.py,sha256=sRvdYguJ-oJOQ3gOyfubh1xiZOq40O5E35rluOmsykc,9441
18
18
  smartpush/form/form_assert.py,sha256=wPIRfQHhr7lN1fFd-mp0z_qKMtF4jfrNxRWvp2xfqCg,257
19
19
  smartpush/form/form_before.py,sha256=CCvAC_2yWPlnQGtjEA8LPLy9853Nq3nNjcL2GewFWIs,175
20
20
  smartpush/form/form_client_operation.py,sha256=gg-5uHXCyMa_ypBSYPYFVxXdwZdYBJsNtUCqayknMBw,303
@@ -24,7 +24,7 @@ smartpush/utils/ListDictUtils.py,sha256=Fm5_d7UyY6xB8gySMPdl5jIFSRhXZcYXdYW-_L1a
24
24
  smartpush/utils/StringUtils.py,sha256=n8mo9k0JQN63MReImgv-66JxmmymOGknR8pH2fkQrAo,4139
25
25
  smartpush/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  smartpush/utils/form_utils.py,sha256=ld-g_Dm_ZlnagQt7imYfUc87bcBRVlTctywuLtzmjXQ,849
27
- smartpush-1.5.6.dist-info/METADATA,sha256=6KmjOu4G6bt-vHKfqmIs31lW_QRfpw6G7rk-Rhi8C5k,131
28
- smartpush-1.5.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
29
- smartpush-1.5.6.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
30
- smartpush-1.5.6.dist-info/RECORD,,
27
+ smartpush-1.5.7.dist-info/METADATA,sha256=FL6Z9J-yTkIiTCPhEQEma2LEyVolTLnJxoOq93bAlC4,131
28
+ smartpush-1.5.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
29
+ smartpush-1.5.7.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
30
+ smartpush-1.5.7.dist-info/RECORD,,