mangoautomation 1.0.53__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',
@@ -126,7 +126,6 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
126
126
  if self.element_model.ope_value is None:
127
127
  raise MangoAutomationError(*ERROR_MSG_0054)
128
128
  await self.__ope_value()
129
- self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
130
129
  if self.drive_type == DriveTypeEnum.WEB.value:
131
130
  await self.web_action_element(
132
131
  self.element_model.name,
@@ -147,7 +146,6 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
147
146
  if self.element_model.ope_value is None:
148
147
  raise MangoAutomationError(*ERROR_MSG_0054)
149
148
  await self.__ope_value(True)
150
- self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
151
149
  try:
152
150
  if self.drive_type == DriveTypeEnum.WEB.value:
153
151
  self.element_result_model.ass_msg = await self.web_assertion_element(
@@ -235,6 +233,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
235
233
  for f, v in self.element_data.items():
236
234
  if f == i.f:
237
235
  i.v = self.base_data.test_data.replace(v)
236
+ i.v = self.base_data.test_data.replace(i.v)
238
237
 
239
238
  except AttributeError as error:
240
239
  self.base_data.log.debug(
@@ -126,7 +126,6 @@ class SyncElement(SyncWebDevice, AndroidDriver):
126
126
  if self.element_model.ope_value is None:
127
127
  raise MangoAutomationError(*ERROR_MSG_0054)
128
128
  self.__ope_value()
129
- self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
130
129
  if self.drive_type == DriveTypeEnum.WEB.value:
131
130
  self.web_action_element(
132
131
  self.element_model.name,
@@ -147,7 +146,6 @@ class SyncElement(SyncWebDevice, AndroidDriver):
147
146
  if self.element_model.ope_value is None:
148
147
  raise MangoAutomationError(*ERROR_MSG_0054)
149
148
  self.__ope_value(True)
150
- self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
151
149
  try:
152
150
  if self.drive_type == DriveTypeEnum.WEB.value:
153
151
  self.element_result_model.ass_msg = self.web_assertion_element(
@@ -235,6 +233,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
235
233
  for f, v in self.element_data.items():
236
234
  if f == i.f:
237
235
  i.v = self.base_data.test_data.replace(v)
236
+ i.v = self.base_data.test_data.replace(i.v)
238
237
 
239
238
  except AttributeError as error:
240
239
  self.base_data.log.debug(
@@ -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=tQd7D8xTU77TVGaAn4L7VXA0PPb0q0wy0mEXjT1dJL4,13902
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=7d83EKZ-iUuKDn5et4qLrMEPTQgl6CS-efpVkMTvjVc,13721
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
@@ -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.53.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
- mangoautomation-1.0.53.dist-info/METADATA,sha256=b9f1z-GU8_2m4EIkYJf7VNG0ydy8QtpZEOPmSAZLCpo,660
55
- mangoautomation-1.0.53.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
- mangoautomation-1.0.53.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
- mangoautomation-1.0.53.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.53
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.