mangoautomation 1.0.52__py3-none-any.whl → 1.0.55__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.

Potentially problematic release.


This version of mangoautomation might be problematic. Click here for more details.

@@ -7,9 +7,7 @@ import sys
7
7
 
8
8
  from ..enums._ui_enum import ElementExpEnum, ElementOperationEnum, DeviceEnum, BrowserTypeEnum, DriveTypeEnum
9
9
 
10
- python_version = sys.version_info
11
- if f"{python_version.major}.{python_version.minor}" != "3.10":
12
- raise Exception("必须使用>Python3.10.4")
10
+
13
11
  __all__ = [
14
12
  'ElementOperationEnum',
15
13
  'DeviceEnum',
@@ -7,8 +7,6 @@ import sys
7
7
 
8
8
  from ._exceptions import MangoAutomationError
9
9
 
10
- python_version = sys.version_info
11
- if f"{python_version.major}.{python_version.minor}" != "3.10":
12
- raise Exception("必须使用>Python3.10.4")
10
+
13
11
 
14
12
  __all__ = ['MangoAutomationError']
@@ -6,9 +6,7 @@ import sys
6
6
 
7
7
  from ..models._ui_model import ElementModel, ElementResultModel
8
8
 
9
- python_version = sys.version_info
10
- if f"{python_version.major}.{python_version.minor}" != "3.10":
11
- raise Exception("必须使用>Python3.10.4")
9
+
12
10
  __all__ = [
13
11
  'ElementModel',
14
12
  'ElementResultModel',
@@ -8,7 +8,5 @@ import sys
8
8
  from ..tools._mate import Meta
9
9
  from ..tools._uiautodev import start_uiautodev, stop_uiautodev
10
10
 
11
- python_version = sys.version_info
12
- if f"{python_version.major}.{python_version.minor}" != "3.10":
13
- raise Exception("必须使用>Python3.10.4")
11
+
14
12
  __all__ = ['Meta', 'start_uiautodev', 'stop_uiautodev']
@@ -9,9 +9,7 @@ from ..uidrive._base_data import BaseData
9
9
  from ..uidrive._driver_object import DriverObject
10
10
  from ..uidrive._sync_element import SyncElement
11
11
 
12
- python_version = sys.version_info
13
- if f"{python_version.major}.{python_version.minor}" != "3.10":
14
- raise Exception("必须使用>Python3.10.4")
12
+
15
13
  __all__ = [
16
14
  'AsyncElement',
17
15
  'BaseData',
@@ -197,7 +197,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
197
197
  value = self.element_data.get('value')
198
198
  self.base_data.test_data.set_cache(key, self.base_data.test_data.replace(value))
199
199
 
200
- async def __ope_value(self, is_ass: bool = False):
200
+ async def __ope_value(self,is_ass: bool = False):
201
201
  try:
202
202
  ope_key = 'actual' if is_ass else 'locating'
203
203
  for i in self.element_model.ope_value:
@@ -233,6 +233,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
233
233
  for f, v in self.element_data.items():
234
234
  if f == i.f:
235
235
  i.v = self.base_data.test_data.replace(v)
236
+ i.v = self.base_data.test_data.replace(i.v)
236
237
 
237
238
  except AttributeError as error:
238
239
  self.base_data.log.debug(
@@ -233,6 +233,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
233
233
  for f, v in self.element_data.items():
234
234
  if f == i.f:
235
235
  i.v = self.base_data.test_data.replace(v)
236
+ i.v = self.base_data.test_data.replace(i.v)
236
237
 
237
238
  except AttributeError as error:
238
239
  self.base_data.log.debug(
@@ -71,8 +71,7 @@ class AsyncWebElement(metaclass=Meta):
71
71
  return value
72
72
  elif value is not None and str(value).strip():
73
73
  return value
74
- except Exception as e:
75
- print(f"方法 [{method_name}] 失败: {str(e)}")
74
+ except Exception:
76
75
  continue
77
76
 
78
77
  return None
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.1
2
+ Name: mangoautomation
3
+ Version: 1.0.55
4
+ Summary: 测试工具
5
+ Home-page: https://gitee.com/mao-peng/testkit
6
+ Author: 毛鹏
7
+ Author-email: 729164035@qq.com
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ License-File: LICENSE
13
+ Requires-Dist: setuptools >=68.2.0
14
+ Requires-Dist: pydantic >=2.9.2
15
+ Requires-Dist: playwright >=1.43.0
16
+ Requires-Dist: uiautomation >=2.0.20
17
+ Requires-Dist: uiautomator2 >=3.2.5
18
+ Requires-Dist: mangotools >=1.1.28
19
+ Requires-Dist: adbutils ~=2.8.9
20
+ Requires-Dist: uiautodev >=0.9.0
21
+
22
+ # testkit
23
+
24
+ #### 介绍
25
+
26
+ 测试工具
27
+
28
+ #### 安装教程
29
+
30
+ 1. pip install mangokit
31
+
32
+ #### 使用说明
33
+
34
+ 1.
@@ -1,20 +1,20 @@
1
1
  mangoautomation/__init__.py,sha256=6nV7fyiPU5G-kWbrpCQUlkJdhJyPQh27qQaSvNvQkzQ,125
2
- mangoautomation/enums/__init__.py,sha256=xPv6158_Tup3U9rbYtUGgWR8W479-7czLvcRk4DUbLs,534
2
+ mangoautomation/enums/__init__.py,sha256=TZnjNeYQRysRolki82U0_s8BQamQ2EjlWFJ-RDDPel8,387
3
3
  mangoautomation/enums/_base_enum.py,sha256=dpaXsdhWY08BhIzi1B1ksh_p18ZTmhWvTYhbd3n_ONQ,1176
4
4
  mangoautomation/enums/_ui_enum.py,sha256=rdkejsyc4ogZbyNfZcp1q0V0bDPo14vg0A6or6ShaXA,4494
5
- mangoautomation/exceptions/__init__.py,sha256=dXtRZSuYg3e_lwYUKYvYjtxTKHITdbi2l9XkHk9DpfY,374
5
+ mangoautomation/exceptions/__init__.py,sha256=4CmTPcSFypENe3zXzsBUjA5MxXLugnP14dlakmItVjs,227
6
6
  mangoautomation/exceptions/_error_msg.py,sha256=wnyHrBPE4ZGcWhvz8bD2K-8rMRRwcUIVVYIHWdhYM2U,5335
7
7
  mangoautomation/exceptions/_exceptions.py,sha256=BiyST1QPivpfIOuKn1gKhpXOyBv6gfip_KvlQuu8ctw,385
8
- mangoautomation/models/__init__.py,sha256=59J8VjshTxZK4xX_-_NBqdLZ1OuvuZPSpljY1Jc-4eQ,416
8
+ mangoautomation/models/__init__.py,sha256=VaL1_5Dvm2g70NGgWCKzbje4VQzJhcnAAdg4JP1WJ_U,269
9
9
  mangoautomation/models/_ui_model.py,sha256=wKiBNpGDhSVCAYf798I0bMzdhCGXfSOptMCQrBLTUCM,1416
10
- mangoautomation/tools/__init__.py,sha256=cc6zpsEdp3JiIx7HfOz-Vob7oTIIFzsuxDLgl20har4,443
10
+ mangoautomation/tools/__init__.py,sha256=J-uPfaTZMMo7CL2PY6_5qCO24iIBTtUJTuFXDJz_AZg,296
11
11
  mangoautomation/tools/_mate.py,sha256=9lk_EJnAX_OyXbe5WacyHkkcEr2ScBgasl6eUnlklWA,405
12
12
  mangoautomation/tools/_uiautodev.py,sha256=RMOQMXse744xwUDb1_l7qDv9mUiqZt1Gm5sbB-nlgDk,1388
13
- mangoautomation/uidrive/__init__.py,sha256=Tk_gh4Qg2qnewEGxa-7Id4fkQLY3fvQE4X7JB0BEscY,577
14
- mangoautomation/uidrive/_async_element.py,sha256=nFzYJpUBvqrbxjtNli7nJBKSYM3zlLByLsyI-eZQSiY,13697
13
+ mangoautomation/uidrive/__init__.py,sha256=3xD94fw5QQvBPMPDq2o-SiJI_zt0AdJuB_X0eAFth8g,430
14
+ mangoautomation/uidrive/_async_element.py,sha256=-nkYBazbYlitsTIfN8XhKIM8GitQifoZ0aTqaOH05Nk,13757
15
15
  mangoautomation/uidrive/_base_data.py,sha256=ur2Ts40MAhOYXb0vGVXZdSwEVCI3Csri9I9f1pw1r4Y,3766
16
16
  mangoautomation/uidrive/_driver_object.py,sha256=Re8j6VLHKfwW2VFdi-1XFRuix8tRBLcHYRBLVF6CApE,1962
17
- mangoautomation/uidrive/_sync_element.py,sha256=VMlvnA79y6KZiowFA3O1h8y8Xps4Nj8PvBzQGtUQbD0,13515
17
+ mangoautomation/uidrive/_sync_element.py,sha256=Zdg5LwNeZBjctpojPmjQfMgrsAAne_w_KWFwhucSlxA,13576
18
18
  mangoautomation/uidrive/android/__init__.py,sha256=SWn7PwRZOf34LCE9KigClDaV8R0n70rqLsG6hCeAok0,5499
19
19
  mangoautomation/uidrive/android/_application.py,sha256=EeEM0MPtOPeYeKx92mtMFWqGpCRmri-D_CzXvPt13RA,2800
20
20
  mangoautomation/uidrive/android/_assertion.py,sha256=Gzic7cH3_Vr6NLiMBPRJr7q1F8YFF2dEopINMR4XQFc,4289
@@ -35,7 +35,7 @@ mangoautomation/uidrive/web/async_web/__init__.py,sha256=awtvLCGjUKIx46d2rZpO2Cc
35
35
  mangoautomation/uidrive/web/async_web/_assertion.py,sha256=iC_j2pZN1pr2kFmxjEb8fBSX91M0BmrcRKARe3JH-kQ,12761
36
36
  mangoautomation/uidrive/web/async_web/_browser.py,sha256=39YroURzagpq0HoEn1RZnNf1KDKXIgWpKSvp5L_Yut0,5286
37
37
  mangoautomation/uidrive/web/async_web/_customization.py,sha256=uw6p9uLHLXglgSkH4qjDl1v0iGlaNjvf8LljRH5cAHU,347
38
- mangoautomation/uidrive/web/async_web/_element.py,sha256=Rm53EFUthDjr5dQbmdpZP37AFf_Euak83BYqUOK2p1Q,10222
38
+ mangoautomation/uidrive/web/async_web/_element.py,sha256=Si0ql_vGtgzacEaSEbglGTw96qdYHcsYEbYqgtIgYCo,10150
39
39
  mangoautomation/uidrive/web/async_web/_input_device.py,sha256=sMAMHb_8QyPx3pKci0gRDQc2O7h1OYMGyA7fCWl81iM,3288
40
40
  mangoautomation/uidrive/web/async_web/_new_browser.py,sha256=WsQ-s2QCjXiePN_u4bLwpds_QpuDd9V2w6hLuLCB-zg,5624
41
41
  mangoautomation/uidrive/web/async_web/_page.py,sha256=TCYf79qQdVBBTTNq2COZFJVcLCgg5Ksu9lMgmQPVInU,2147
@@ -50,8 +50,8 @@ mangoautomation/uidrive/web/sync_web/_page.py,sha256=MNekcL7o5YXEloeuvi3YrpOZxGh
50
50
  tests/__init__.py,sha256=UhCNFqiVjxdh4CXESNo4oE7qfjpYYVkeHbSE5-7LGDY,125
51
51
  tests/test_ui_and.py,sha256=4k0_3bx_k2KbZifeRWGK65sxtdiPUOjkNzZ5oxjrc18,672
52
52
  tests/test_ui_web.py,sha256=MFaUN8O5qKOMMgyk2eelhKZsYcSJm0Do6pCgsdBZEH4,2765
53
- mangoautomation-1.0.52.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
- mangoautomation-1.0.52.dist-info/METADATA,sha256=zr3lfifZTCbAdVV8jcH-LrU7vnpSwzQk5YLHb3zI_3A,660
55
- mangoautomation-1.0.52.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
- mangoautomation-1.0.52.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
- mangoautomation-1.0.52.dist-info/RECORD,,
53
+ mangoautomation-1.0.55.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
+ mangoautomation-1.0.55.dist-info/METADATA,sha256=7rVCyRtGhPYGYHzP0RTjDkAPYWzSGiFNlSN6RQvuG5o,816
55
+ mangoautomation-1.0.55.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
+ mangoautomation-1.0.55.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
+ mangoautomation-1.0.55.dist-info/RECORD,,
@@ -1,31 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mangoautomation
3
- Version: 1.0.52
4
- Summary: 测试工具
5
- Home-page: https://gitee.com/mao-peng/testkit
6
- Author: 毛鹏
7
- Author-email: 729164035@qq.com
8
- Classifier: Programming Language :: Python :: 3.10
9
- License-File: LICENSE
10
- Requires-Dist: setuptools ==68.2.0
11
- Requires-Dist: pydantic ==2.9.2
12
- Requires-Dist: playwright ==1.43.0
13
- Requires-Dist: uiautomation ==2.0.20
14
- Requires-Dist: uiautomator2 ==3.2.5
15
- Requires-Dist: mangotools >=1.1.17
16
- Requires-Dist: adbutils ~=2.8.9
17
- Requires-Dist: uiautodev ==0.9.0
18
-
19
- # testkit
20
-
21
- #### 介绍
22
-
23
- 测试工具
24
-
25
- #### 安装教程
26
-
27
- 1. pip install mangokit
28
-
29
- #### 使用说明
30
-
31
- 1.