hardpy 0.3.0__py3-none-any.whl → 0.4.0__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.
- hardpy/__init__.py +9 -1
- hardpy/hardpy_panel/api.py +15 -0
- hardpy/hardpy_panel/frontend/dist/asset-manifest.json +3 -3
- hardpy/hardpy_panel/frontend/dist/index.html +1 -1
- hardpy/hardpy_panel/frontend/dist/static/js/main.37744128.js +3 -0
- hardpy/hardpy_panel/frontend/dist/static/js/main.37744128.js.map +1 -0
- hardpy/hardpy_panel/runner.py +2 -0
- hardpy/pytest_hardpy/db/const.py +1 -0
- hardpy/pytest_hardpy/db/schema.py +23 -2
- hardpy/pytest_hardpy/plugin.py +4 -0
- hardpy/pytest_hardpy/pytest_call.py +84 -3
- hardpy/pytest_hardpy/pytest_wrapper.py +29 -0
- hardpy/pytest_hardpy/reporter/hook_reporter.py +12 -5
- hardpy/pytest_hardpy/utils/__init__.py +17 -1
- hardpy/pytest_hardpy/utils/config_data.py +5 -1
- hardpy/pytest_hardpy/utils/dialog_box.py +100 -0
- hardpy/pytest_hardpy/utils/exception.py +7 -0
- {hardpy-0.3.0.dist-info → hardpy-0.4.0.dist-info}/METADATA +2 -2
- {hardpy-0.3.0.dist-info → hardpy-0.4.0.dist-info}/RECORD +23 -22
- hardpy/hardpy_panel/frontend/dist/static/js/main.8ef63e9b.js +0 -3
- hardpy/hardpy_panel/frontend/dist/static/js/main.8ef63e9b.js.map +0 -1
- /hardpy/hardpy_panel/frontend/dist/static/js/{main.8ef63e9b.js.LICENSE.txt → main.37744128.js.LICENSE.txt} +0 -0
- {hardpy-0.3.0.dist-info → hardpy-0.4.0.dist-info}/WHEEL +0 -0
- {hardpy-0.3.0.dist-info → hardpy-0.4.0.dist-info}/entry_points.txt +0 -0
- {hardpy-0.3.0.dist-info → hardpy-0.4.0.dist-info}/licenses/LICENSE +0 -0
hardpy/__init__.py
CHANGED
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
# GNU General Public License v3.0 (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
3
3
|
|
|
4
4
|
from hardpy.pytest_hardpy.result import CouchdbLoader
|
|
5
|
-
from hardpy.pytest_hardpy.utils import
|
|
5
|
+
from hardpy.pytest_hardpy.utils import (
|
|
6
|
+
DuplicateSerialNumberError,
|
|
7
|
+
DuplicateDialogBoxError,
|
|
8
|
+
)
|
|
6
9
|
from hardpy.pytest_hardpy.result.couchdb_config import CouchdbConfig
|
|
10
|
+
from hardpy.pytest_hardpy.utils import dialog_box
|
|
7
11
|
from hardpy.pytest_hardpy.pytest_call import (
|
|
8
12
|
get_current_report,
|
|
9
13
|
set_dut_info,
|
|
@@ -14,12 +18,14 @@ from hardpy.pytest_hardpy.pytest_call import (
|
|
|
14
18
|
set_run_artifact,
|
|
15
19
|
set_message,
|
|
16
20
|
set_driver_info,
|
|
21
|
+
run_dialog_box,
|
|
17
22
|
)
|
|
18
23
|
|
|
19
24
|
__all__ = [
|
|
20
25
|
"CouchdbLoader",
|
|
21
26
|
"CouchdbConfig",
|
|
22
27
|
"DuplicateSerialNumberError",
|
|
28
|
+
"DuplicateDialogBoxError",
|
|
23
29
|
"get_current_report",
|
|
24
30
|
"set_dut_info",
|
|
25
31
|
"set_dut_serial_number",
|
|
@@ -29,4 +35,6 @@ __all__ = [
|
|
|
29
35
|
"set_run_artifact",
|
|
30
36
|
"set_message",
|
|
31
37
|
"set_driver_info",
|
|
38
|
+
"run_dialog_box",
|
|
39
|
+
"dialog_box",
|
|
32
40
|
]
|
hardpy/hardpy_panel/api.py
CHANGED
|
@@ -64,6 +64,21 @@ def couch_connection():
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
|
|
67
|
+
@app.post("/api/confirm_dialog_box/{dialog_box_output}")
|
|
68
|
+
def confirm_dialog_box(dialog_box_output: str):
|
|
69
|
+
"""Confirm dialog box.
|
|
70
|
+
|
|
71
|
+
Args:
|
|
72
|
+
dialog_box_output (str): output data from dialog box.
|
|
73
|
+
|
|
74
|
+
Returns:
|
|
75
|
+
dict[str, RunStatus]: run status
|
|
76
|
+
"""
|
|
77
|
+
if app.state.pytest_wrp.confirm_dialog_box(dialog_box_output):
|
|
78
|
+
return {"status": Status.BUSY}
|
|
79
|
+
return {"status": Status.ERROR}
|
|
80
|
+
|
|
81
|
+
|
|
67
82
|
app.mount(
|
|
68
83
|
"/",
|
|
69
84
|
StaticFiles(directory=(os.path.dirname(__file__)) + "/frontend/dist", html=True),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "/static/css/main.e8a862f1.css",
|
|
4
|
-
"main.js": "/static/js/main.
|
|
4
|
+
"main.js": "/static/js/main.37744128.js",
|
|
5
5
|
"blueprint-icons-all-paths-loader.js": "/static/js/blueprint-icons-all-paths-loader.0aa89747.chunk.js",
|
|
6
6
|
"blueprint-icons-split-paths-by-size-loader.js": "/static/js/blueprint-icons-split-paths-by-size-loader.52a072d3.chunk.js",
|
|
7
7
|
"static/js/808.ce070002.chunk.js": "/static/js/808.ce070002.chunk.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"static/media/logo_smol.png": "/static/media/logo_smol.5b16f92447a4a9e80331.png",
|
|
22
22
|
"index.html": "/index.html",
|
|
23
23
|
"main.e8a862f1.css.map": "/static/css/main.e8a862f1.css.map",
|
|
24
|
-
"main.
|
|
24
|
+
"main.37744128.js.map": "/static/js/main.37744128.js.map",
|
|
25
25
|
"blueprint-icons-all-paths-loader.0aa89747.chunk.js.map": "/static/js/blueprint-icons-all-paths-loader.0aa89747.chunk.js.map",
|
|
26
26
|
"blueprint-icons-split-paths-by-size-loader.52a072d3.chunk.js.map": "/static/js/blueprint-icons-split-paths-by-size-loader.52a072d3.chunk.js.map",
|
|
27
27
|
"808.ce070002.chunk.js.map": "/static/js/808.ce070002.chunk.js.map",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
},
|
|
32
32
|
"entrypoints": [
|
|
33
33
|
"static/css/main.e8a862f1.css",
|
|
34
|
-
"static/js/main.
|
|
34
|
+
"static/js/main.37744128.js"
|
|
35
35
|
]
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>HardPy Operator Panel</title><script defer="defer" src="/static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>HardPy Operator Panel</title><script defer="defer" src="/static/js/main.37744128.js"></script><link href="/static/css/main.e8a862f1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|