puzzeluitest 0.1.0__tar.gz

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.
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: puzzeluitest
3
+ Version: 0.1.0
4
+ Summary: Easy UI auto test
5
+ Requires-Python: >=3.13
6
+ Requires-Dist: pytest>=9.0.2
7
+ Requires-Dist: pytest-playwright>=0.7.2
8
+ Requires-Dist: playwright>=1.48.0
9
+ Provides-Extra: dev
10
+ Requires-Dist: pytest-cov; extra == "dev"
11
+ Requires-Dist: black; extra == "dev"
12
+ Requires-Dist: ruff; extra == "dev"
@@ -0,0 +1 @@
1
+ # This makes 'tests' a package so relative imports work
@@ -0,0 +1,38 @@
1
+ from typing import Literal
2
+ from playwright.sync_api import Page
3
+
4
+
5
+
6
+ class Auth:
7
+ url: str = None
8
+ def __init__(self, page: Page):
9
+ pass
10
+ def run_test(self):
11
+ if self.url is None:
12
+ raise Exception("Необходимо указать url страницы")
13
+ self.page.goto(self.url)
14
+
15
+
16
+ class Object:
17
+ def __init__(self, locator: str):
18
+ self.locator = locator
19
+
20
+
21
+ class InputObject(Object):
22
+ def __init__(self, locator: str, type: Literal["login", "password", "email"]):
23
+ super().__init__(locator)
24
+ self.locator = locator
25
+ self.type = type
26
+
27
+
28
+ class Input(InputObject):
29
+ ...
30
+
31
+ class Button(Object):
32
+ ...
33
+
34
+ class Link(Object):
35
+ ...
36
+
37
+
38
+
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: puzzeluitest
3
+ Version: 0.1.0
4
+ Summary: Easy UI auto test
5
+ Requires-Python: >=3.13
6
+ Requires-Dist: pytest>=9.0.2
7
+ Requires-Dist: pytest-playwright>=0.7.2
8
+ Requires-Dist: playwright>=1.48.0
9
+ Provides-Extra: dev
10
+ Requires-Dist: pytest-cov; extra == "dev"
11
+ Requires-Dist: black; extra == "dev"
12
+ Requires-Dist: ruff; extra == "dev"
@@ -0,0 +1,8 @@
1
+ pyproject.toml
2
+ base/__init__.py
3
+ base/web.py
4
+ puzzeluitest.egg-info/PKG-INFO
5
+ puzzeluitest.egg-info/SOURCES.txt
6
+ puzzeluitest.egg-info/dependency_links.txt
7
+ puzzeluitest.egg-info/requires.txt
8
+ puzzeluitest.egg-info/top_level.txt
@@ -0,0 +1,8 @@
1
+ pytest>=9.0.2
2
+ pytest-playwright>=0.7.2
3
+ playwright>=1.48.0
4
+
5
+ [dev]
6
+ pytest-cov
7
+ black
8
+ ruff
@@ -0,0 +1,16 @@
1
+ [project]
2
+ name = "puzzeluitest"
3
+ version = "0.1.0"
4
+ description = "Easy UI auto test"
5
+ requires-python = ">=3.13"
6
+ dependencies = [
7
+ "pytest>=9.0.2",
8
+ "pytest-playwright>=0.7.2",
9
+ "playwright>=1.48.0"
10
+ ]
11
+ [project.optional-dependencies]
12
+ dev = [
13
+ "pytest-cov",
14
+ "black",
15
+ "ruff"
16
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+