drun 7.2.2__tar.gz → 7.2.3__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.
- {drun-7.2.2 → drun-7.2.3}/PKG-INFO +8 -6
- {drun-7.2.2 → drun-7.2.3}/README.md +6 -5
- {drun-7.2.2 → drun-7.2.3}/drun/cli.py +521 -166
- {drun-7.2.2 → drun-7.2.3}/drun/commands/run.py +185 -52
- {drun-7.2.2 → drun-7.2.3}/drun/loader/hooks.py +3 -3
- {drun-7.2.2 → drun-7.2.3}/drun/scaffolds/templates.py +1 -1
- {drun-7.2.2 → drun-7.2.3}/drun.egg-info/PKG-INFO +8 -6
- {drun-7.2.2 → drun-7.2.3}/drun.egg-info/requires.txt +1 -0
- {drun-7.2.2 → drun-7.2.3}/pyproject.toml +2 -1
- {drun-7.2.2 → drun-7.2.3}/tests/test_run_outputs.py +91 -25
- {drun-7.2.2 → drun-7.2.3}/LICENSE +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/commands/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/commands/check.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/commands/fix.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/commands/tags.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/db/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/db/database_proxy.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/db/generate_mysql_config.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/engine/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/engine/http.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/engine/request_files.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/exporters/curl.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/exporters/snippet.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/extensions.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/importers/base.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/importers/curl.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/importers/har.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/importers/openapi.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/importers/postman.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/loader/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/loader/collector.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/loader/env.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/loader/yaml_loader.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/models/case.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/models/config.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/models/report.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/models/request.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/models/step.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/models/validators.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/notifier/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/notifier/base.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/notifier/dingtalk.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/notifier/emailer.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/notifier/feishu.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/notifier/format.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/reporter/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/reporter/allure_reporter.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/reporter/html_reporter.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/reporter/json_reporter.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/runner/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/runner/asserting.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/runner/assertions.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/runner/extractors.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/runner/hooks.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/runner/invoke.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/runner/runner.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/scaffolds/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/server/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/server/app.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/server/database.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/server/scanner.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/server/services.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/server/templates/detail.html +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/server/templates/index.html +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/templating/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/templating/builtins.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/templating/compat.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/templating/context.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/templating/engine.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/__init__.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/config.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/curl.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/data_exporter.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/env_writer.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/errors.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/logging.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/mask.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun/utils/timeit.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun.egg-info/SOURCES.txt +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun.egg-info/dependency_links.txt +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun.egg-info/entry_points.txt +0 -0
- {drun-7.2.2 → drun-7.2.3}/drun.egg-info/top_level.txt +0 -0
- {drun-7.2.2 → drun-7.2.3}/setup.cfg +0 -0
- {drun-7.2.2 → drun-7.2.3}/tests/test_binary_response.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/tests/test_request_files.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/tests/test_run_env.py +0 -0
- {drun-7.2.2 → drun-7.2.3}/tests/test_template_engine.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: drun
|
|
3
|
-
Version: 7.2.
|
|
3
|
+
Version: 7.2.3
|
|
4
4
|
Summary: Easy-to-use API testing with DevOps automation support
|
|
5
5
|
Author: Drun Team
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -17,6 +17,7 @@ Requires-Dist: uvicorn>=0.24
|
|
|
17
17
|
Requires-Dist: Faker>=24.0
|
|
18
18
|
Provides-Extra: dev
|
|
19
19
|
Requires-Dist: build>=1.2; extra == "dev"
|
|
20
|
+
Requires-Dist: pytest>=9.0.2; extra == "dev"
|
|
20
21
|
Dynamic: license-file
|
|
21
22
|
|
|
22
23
|
# Drun — Modern HTTP API Testing Framework
|
|
@@ -124,7 +125,7 @@ my-api-test/
|
|
|
124
125
|
├── logs/ # Log file output
|
|
125
126
|
├── snippets/ # Auto-generated code snippets
|
|
126
127
|
├── .env # Environment variables
|
|
127
|
-
├──
|
|
128
|
+
├── Dhook.py # Custom Hooks functions
|
|
128
129
|
└── .gitignore # Git ignore rules
|
|
129
130
|
```
|
|
130
131
|
|
|
@@ -483,7 +484,7 @@ $ drun run test_api --env dev --snippet-output exports/
|
|
|
483
484
|
|
|
484
485
|
### Custom Hooks
|
|
485
486
|
|
|
486
|
-
**
|
|
487
|
+
**Dhook.py**
|
|
487
488
|
```python
|
|
488
489
|
import hmac
|
|
489
490
|
import hashlib
|
|
@@ -873,7 +874,7 @@ my-api-test/
|
|
|
873
874
|
│ ├── staging.yaml
|
|
874
875
|
│ └── prod.yaml
|
|
875
876
|
├── .env # Local environment
|
|
876
|
-
├──
|
|
877
|
+
├── Dhook.py # Custom functions
|
|
877
878
|
├── .gitignore # Exclude .env, logs, reports
|
|
878
879
|
└── README.md
|
|
879
880
|
```
|
|
@@ -1114,7 +1115,7 @@ steps:
|
|
|
1114
1115
|
|
|
1115
1116
|
### Database Assertions
|
|
1116
1117
|
|
|
1117
|
-
**
|
|
1118
|
+
**Dhook.py:**
|
|
1118
1119
|
```python
|
|
1119
1120
|
import pymysql
|
|
1120
1121
|
|
|
@@ -1179,13 +1180,14 @@ steps:
|
|
|
1179
1180
|
git clone https://github.com/Devliang24/drun.git
|
|
1180
1181
|
cd drun
|
|
1181
1182
|
|
|
1182
|
-
# Install development dependencies
|
|
1183
|
+
# Install development dependencies (includes pytest)
|
|
1183
1184
|
pip install -e ".[dev]"
|
|
1184
1185
|
|
|
1185
1186
|
# Validation commands for the current P0 baseline
|
|
1186
1187
|
drun --version
|
|
1187
1188
|
drun run --help
|
|
1188
1189
|
drun server --help
|
|
1190
|
+
python -m pytest -q
|
|
1189
1191
|
python -m build
|
|
1190
1192
|
python -m drun.cli --version
|
|
1191
1193
|
```
|
|
@@ -103,7 +103,7 @@ my-api-test/
|
|
|
103
103
|
├── logs/ # Log file output
|
|
104
104
|
├── snippets/ # Auto-generated code snippets
|
|
105
105
|
├── .env # Environment variables
|
|
106
|
-
├──
|
|
106
|
+
├── Dhook.py # Custom Hooks functions
|
|
107
107
|
└── .gitignore # Git ignore rules
|
|
108
108
|
```
|
|
109
109
|
|
|
@@ -462,7 +462,7 @@ $ drun run test_api --env dev --snippet-output exports/
|
|
|
462
462
|
|
|
463
463
|
### Custom Hooks
|
|
464
464
|
|
|
465
|
-
**
|
|
465
|
+
**Dhook.py**
|
|
466
466
|
```python
|
|
467
467
|
import hmac
|
|
468
468
|
import hashlib
|
|
@@ -852,7 +852,7 @@ my-api-test/
|
|
|
852
852
|
│ ├── staging.yaml
|
|
853
853
|
│ └── prod.yaml
|
|
854
854
|
├── .env # Local environment
|
|
855
|
-
├──
|
|
855
|
+
├── Dhook.py # Custom functions
|
|
856
856
|
├── .gitignore # Exclude .env, logs, reports
|
|
857
857
|
└── README.md
|
|
858
858
|
```
|
|
@@ -1093,7 +1093,7 @@ steps:
|
|
|
1093
1093
|
|
|
1094
1094
|
### Database Assertions
|
|
1095
1095
|
|
|
1096
|
-
**
|
|
1096
|
+
**Dhook.py:**
|
|
1097
1097
|
```python
|
|
1098
1098
|
import pymysql
|
|
1099
1099
|
|
|
@@ -1158,13 +1158,14 @@ steps:
|
|
|
1158
1158
|
git clone https://github.com/Devliang24/drun.git
|
|
1159
1159
|
cd drun
|
|
1160
1160
|
|
|
1161
|
-
# Install development dependencies
|
|
1161
|
+
# Install development dependencies (includes pytest)
|
|
1162
1162
|
pip install -e ".[dev]"
|
|
1163
1163
|
|
|
1164
1164
|
# Validation commands for the current P0 baseline
|
|
1165
1165
|
drun --version
|
|
1166
1166
|
drun run --help
|
|
1167
1167
|
drun server --help
|
|
1168
|
+
python -m pytest -q
|
|
1168
1169
|
python -m build
|
|
1169
1170
|
python -m drun.cli --version
|
|
1170
1171
|
```
|