pytestflow 0.2.0__tar.gz → 0.2.2__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.
- {pytestflow-0.2.0 → pytestflow-0.2.2}/PKG-INFO +3 -1
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pyproject.toml +4 -2
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/cli.py +3 -28
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/PKG-INFO +3 -1
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/SOURCES.txt +0 -1
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/requires.txt +2 -0
- pytestflow-0.2.0/setup.py +0 -4
- {pytestflow-0.2.0 → pytestflow-0.2.2}/MANIFEST.in +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/config.yaml +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/custom_step_types/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/custom_step_types/custom_step_template.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/README.md +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/default_report.html.j2 +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/html_report.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/sequential_model.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/basic_sequence.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/message_box_and_flow_control.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/motherboard_test_sequence.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/step_types_quickstart.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/README.md +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/event_bus.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/assets/full_logo-D1DRTUt8.svg +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/assets/index-480TOyh4.js +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/assets/index-qEI3VAQU.css +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/index.html +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/logo.svg +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/handlers.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/report_manager.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/sequences_info.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/start_backend.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/uuids_handler.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/websocket_gateway.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/config/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/config/config_manager.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/README.md +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/context.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/core.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/pytestflow_states.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/runtime_control.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/seq_file_runner.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/sequence.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/utils.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/README.md +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/conditions.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/transitions.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/starter_here.md +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/README.md +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/__init__.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/action_step.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/common.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/df_numeric_limits.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/flow_control.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/message_pop_up.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/numeric_limit.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/pass_fail.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/string_check.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/waveform_limit.py +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/dependency_links.txt +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/entry_points.txt +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/top_level.txt +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/readme.md +0 -0
- {pytestflow-0.2.0 → pytestflow-0.2.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytestflow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Test automation framework inspired by NI TestStand, built on Prefect
|
|
5
5
|
Author-email: Alberto Manzoni <alb.manzoni@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/Alberto-Manzoni/PyTestFlow
|
|
@@ -18,6 +18,8 @@ Classifier: Topic :: Software Development :: Testing
|
|
|
18
18
|
Requires-Python: >=3.10
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
Requires-Dist: prefect==3.6.24
|
|
21
|
+
Requires-Dist: fastapi==0.136.0
|
|
22
|
+
Requires-Dist: starlette==1.0.0
|
|
21
23
|
Requires-Dist: pandas
|
|
22
24
|
Requires-Dist: numpy
|
|
23
25
|
Requires-Dist: rich
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pytestflow"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "Test automation framework inspired by NI TestStand, built on Prefect"
|
|
9
9
|
readme = "readme.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -12,7 +12,9 @@ authors = [
|
|
|
12
12
|
{ name = "Alberto Manzoni", email = "alb.manzoni@gmail.com" },
|
|
13
13
|
]
|
|
14
14
|
dependencies = [
|
|
15
|
-
"prefect==3.6.24",
|
|
15
|
+
"prefect==3.6.24",
|
|
16
|
+
"fastapi==0.136.0",
|
|
17
|
+
"starlette==1.0.0",
|
|
16
18
|
"pandas",
|
|
17
19
|
"numpy",
|
|
18
20
|
"rich",
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import argparse
|
|
2
|
-
import os
|
|
3
2
|
import shutil
|
|
4
3
|
import sys
|
|
5
4
|
from pathlib import Path
|
|
6
5
|
from importlib import resources
|
|
7
6
|
|
|
8
|
-
APP_DIR_NAME = "pytestflow"
|
|
9
|
-
|
|
10
7
|
# --------------------
|
|
11
8
|
# Template map
|
|
12
9
|
# --------------------
|
|
@@ -19,21 +16,6 @@ TEMPLATE_SOURCE_MAP = {
|
|
|
19
16
|
# --------------------
|
|
20
17
|
# Workspace helpers
|
|
21
18
|
# --------------------
|
|
22
|
-
def resolve_workspace_root(custom_path: str | None = None) -> Path:
|
|
23
|
-
if custom_path:
|
|
24
|
-
return Path(custom_path).expanduser().resolve()
|
|
25
|
-
|
|
26
|
-
home = Path.home()
|
|
27
|
-
if sys.platform.startswith("win"):
|
|
28
|
-
base = Path(os.getenv("LOCALAPPDATA") or os.getenv("APPDATA") or (home / "AppData/Local"))
|
|
29
|
-
elif sys.platform == "darwin":
|
|
30
|
-
base = home / "Library/Application Support"
|
|
31
|
-
else:
|
|
32
|
-
base = Path(os.getenv("XDG_DATA_HOME") or (home / ".local/share"))
|
|
33
|
-
|
|
34
|
-
return (base / APP_DIR_NAME).resolve()
|
|
35
|
-
|
|
36
|
-
|
|
37
19
|
def workspace_paths(root: Path) -> dict[str, Path]:
|
|
38
20
|
subdirs = ["process_models", "test_sequences", "test_reports", "custom_step_types"]
|
|
39
21
|
paths = {"root": root}
|
|
@@ -74,16 +56,9 @@ def _copy_templates(paths: dict[str, Path]) -> list[tuple[str, Path]]:
|
|
|
74
56
|
return copied
|
|
75
57
|
|
|
76
58
|
|
|
77
|
-
def
|
|
59
|
+
def initialize_workspace() -> dict[str, Path]:
|
|
78
60
|
print("PyTestFlow workspace initialization:")
|
|
79
|
-
|
|
80
|
-
"Install templates in current folder (c) or default location (d)? [d/c]: "
|
|
81
|
-
).strip().lower()
|
|
82
|
-
|
|
83
|
-
if choice == "c":
|
|
84
|
-
root = Path.cwd()
|
|
85
|
-
else:
|
|
86
|
-
root = resolve_workspace_root()
|
|
61
|
+
root = Path.cwd().resolve()
|
|
87
62
|
|
|
88
63
|
paths = workspace_paths(root)
|
|
89
64
|
root.mkdir(parents=True, exist_ok=True)
|
|
@@ -167,7 +142,7 @@ def main(argv=None) -> int:
|
|
|
167
142
|
command = args.command or "start"
|
|
168
143
|
|
|
169
144
|
if command == "init":
|
|
170
|
-
|
|
145
|
+
initialize_workspace()
|
|
171
146
|
return 0
|
|
172
147
|
|
|
173
148
|
if command == "start":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytestflow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Test automation framework inspired by NI TestStand, built on Prefect
|
|
5
5
|
Author-email: Alberto Manzoni <alb.manzoni@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/Alberto-Manzoni/PyTestFlow
|
|
@@ -18,6 +18,8 @@ Classifier: Topic :: Software Development :: Testing
|
|
|
18
18
|
Requires-Python: >=3.10
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
Requires-Dist: prefect==3.6.24
|
|
21
|
+
Requires-Dist: fastapi==0.136.0
|
|
22
|
+
Requires-Dist: starlette==1.0.0
|
|
21
23
|
Requires-Dist: pandas
|
|
22
24
|
Requires-Dist: numpy
|
|
23
25
|
Requires-Dist: rich
|
pytestflow-0.2.0/setup.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/custom_step_types/custom_step_template.py
RENAMED
|
File without changes
|
|
File without changes
|
{pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/README.md
RENAMED
|
File without changes
|
{pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/html_report.py
RENAMED
|
File without changes
|
{pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/sequential_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/step_types_quickstart.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/assets/full_logo-D1DRTUt8.svg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|