diteko 0.3.0__tar.gz → 0.4.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.
- {diteko-0.3.0 → diteko-0.4.0}/CHANGELOG.md +10 -0
- {diteko-0.3.0 → diteko-0.4.0}/PKG-INFO +11 -1
- {diteko-0.3.0 → diteko-0.4.0}/pyproject.toml +1 -1
- {diteko-0.3.0 → diteko-0.4.0}/src/diteko/__init__.py +1 -1
- {diteko-0.3.0 → diteko-0.4.0}/src/diteko/sdk.py +10 -1
- {diteko-0.3.0 → diteko-0.4.0}/tests/fake_api.py +1 -1
- {diteko-0.3.0 → diteko-0.4.0}/tests/test_sdk.py +2 -0
- {diteko-0.3.0 → diteko-0.4.0}/.gitignore +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/LICENSE +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/README.md +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/examples/cxblueprint_to_excel.ipynb +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/examples/cxblueprint_to_excel.py +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/src/diteko/_http.py +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/src/diteko/mcp_server.py +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/tests/conftest.py +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/tests/test_contract.py +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/tests/test_live.py +0 -0
- {diteko-0.3.0 → diteko-0.4.0}/tests/test_mcp.py +0 -0
|
@@ -4,6 +4,15 @@ All notable changes to the `diteko` Python package. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
|
|
5
5
|
[Semantic Versioning](https://semver.org/) as described under “Versioning” in the README.
|
|
6
6
|
|
|
7
|
+
## [0.4.0] - 2026-10-11
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `Verdict.attempts` and `Verdict.passed_on_rerun`. A server on API 1.2 re-runs a test
|
|
12
|
+
that failed, once, because Connect's prompt recognition sometimes misses a prompt the
|
|
13
|
+
flow played; a pass on the re-run is reported as a pass with `attempts == 2`. Older
|
|
14
|
+
servers leave `attempts` as `None`.
|
|
15
|
+
|
|
7
16
|
## [0.3.0] - 2026-10-11
|
|
8
17
|
|
|
9
18
|
### Added
|
|
@@ -52,6 +61,7 @@ All notable changes to the `diteko` Python package. The format follows
|
|
|
52
61
|
- `diteko-mcp`, an MCP server exposing the same pipeline as eight tools, on `mcp`
|
|
53
62
|
1.x or 2.x.
|
|
54
63
|
|
|
64
|
+
[0.4.0]: https://pypi.org/project/diteko/0.4.0/
|
|
55
65
|
[0.3.0]: https://pypi.org/project/diteko/0.3.0/
|
|
56
66
|
[0.2.0]: https://pypi.org/project/diteko/0.2.0/
|
|
57
67
|
[0.1.0]: https://pypi.org/project/diteko/0.1.0/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: diteko
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Generate, export and run tests for Amazon Connect contact flows with Diteko (Grammatical Evolution).
|
|
5
5
|
Author: Lehlohonolo Sehako
|
|
6
6
|
License-Expression: MIT
|
|
@@ -217,6 +217,15 @@ All notable changes to the `diteko` Python package. The format follows
|
|
|
217
217
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
|
|
218
218
|
[Semantic Versioning](https://semver.org/) as described under “Versioning” in the README.
|
|
219
219
|
|
|
220
|
+
## [0.4.0] - 2026-10-11
|
|
221
|
+
|
|
222
|
+
### Added
|
|
223
|
+
|
|
224
|
+
- `Verdict.attempts` and `Verdict.passed_on_rerun`. A server on API 1.2 re-runs a test
|
|
225
|
+
that failed, once, because Connect's prompt recognition sometimes misses a prompt the
|
|
226
|
+
flow played; a pass on the re-run is reported as a pass with `attempts == 2`. Older
|
|
227
|
+
servers leave `attempts` as `None`.
|
|
228
|
+
|
|
220
229
|
## [0.3.0] - 2026-10-11
|
|
221
230
|
|
|
222
231
|
### Added
|
|
@@ -265,6 +274,7 @@ All notable changes to the `diteko` Python package. The format follows
|
|
|
265
274
|
- `diteko-mcp`, an MCP server exposing the same pipeline as eight tools, on `mcp`
|
|
266
275
|
1.x or 2.x.
|
|
267
276
|
|
|
277
|
+
[0.4.0]: https://pypi.org/project/diteko/0.4.0/
|
|
268
278
|
[0.3.0]: https://pypi.org/project/diteko/0.3.0/
|
|
269
279
|
[0.2.0]: https://pypi.org/project/diteko/0.2.0/
|
|
270
280
|
[0.1.0]: https://pypi.org/project/diteko/0.1.0/
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "diteko"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "Generate, export and run tests for Amazon Connect contact flows with Diteko (Grammatical Evolution)."
|
|
9
9
|
dynamic = ["readme"]
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -181,12 +181,19 @@ class Verdict:
|
|
|
181
181
|
test_id: str
|
|
182
182
|
status: str
|
|
183
183
|
message: str | None = None
|
|
184
|
+
attempts: int | None = None
|
|
185
|
+
"""Executions started: 2 when the test failed and the server re-ran it (API 1.2; None from older servers)."""
|
|
184
186
|
|
|
185
187
|
@property
|
|
186
188
|
def conclusive(self) -> bool:
|
|
187
189
|
"""PASSED or FAILED. Anything else (ERRORED: Connect could not start it; SKIPPED; a dry run's transcode) says nothing about the flow."""
|
|
188
190
|
return self.status in ("PASSED", "FAILED")
|
|
189
191
|
|
|
192
|
+
@property
|
|
193
|
+
def passed_on_rerun(self) -> bool:
|
|
194
|
+
"""Failed once, then passed when re-run: most likely a prompt Connect's recognition missed, not a defect."""
|
|
195
|
+
return self.status == "PASSED" and (self.attempts or 1) > 1
|
|
196
|
+
|
|
190
197
|
|
|
191
198
|
@dataclass(frozen=True)
|
|
192
199
|
class GrammarInfo:
|
|
@@ -304,7 +311,9 @@ class Execution:
|
|
|
304
311
|
@property
|
|
305
312
|
def results(self) -> list[Verdict]:
|
|
306
313
|
"""Every test's outcome, with Connect's message where there is one."""
|
|
307
|
-
return [
|
|
314
|
+
return [
|
|
315
|
+
Verdict(e.get("testId", ""), e.get("status", ""), e.get("message"), e.get("attempts")) for e in self.raw.get("executions", [])
|
|
316
|
+
]
|
|
308
317
|
|
|
309
318
|
@property
|
|
310
319
|
def inconclusive(self) -> int:
|
|
@@ -117,7 +117,7 @@ class FakeApi:
|
|
|
117
117
|
if m == "POST" and path == "/test-cases/upload-to-connect":
|
|
118
118
|
return ok({"uploadId": "u-1", "status": "RUNNING", "dryRun": body["dryRun"], "executions": []}, 202)
|
|
119
119
|
if m == "GET" and path == "/test-cases/connect-runs/u-1":
|
|
120
|
-
return ok({"uploadId": "u-1", "status": "COMPLETED", "dryRun": True, "executions": [{"testId": "GE-0001", "status": "PASSED"}, {"testId": "GE-0002", "status": "FAILED", "message": "Expected prompt not heard"}, {"testId": "GE-0003", "status": "ERRORED", "message": "Connect could not start the test"}]})
|
|
120
|
+
return ok({"uploadId": "u-1", "status": "COMPLETED", "dryRun": True, "executions": [{"testId": "GE-0001", "status": "PASSED", "attempts": 2}, {"testId": "GE-0002", "status": "FAILED", "message": "Expected prompt not heard"}, {"testId": "GE-0003", "status": "ERRORED", "message": "Connect could not start the test"}]})
|
|
121
121
|
if m == "GET" and path == "/settings/connect":
|
|
122
122
|
return ok({"enabled": False, "maxConcurrent": 5, "executionBudgetSeconds": 240})
|
|
123
123
|
return ok({"title": f"no fake for {m} {path}"}, 404)
|
|
@@ -203,6 +203,8 @@ def test_execution_results_separate_inconclusive_tests(dk, monkeypatch):
|
|
|
203
203
|
execution = project.evolve(preset="quick").wait().suite().publish_to_connect()
|
|
204
204
|
assert [(v.test_id, v.conclusive) for v in execution.results] == [("GE-0001", True), ("GE-0002", True), ("GE-0003", False)]
|
|
205
205
|
assert execution.results[1].message == "Expected prompt not heard"
|
|
206
|
+
assert execution.results[0].passed_on_rerun and execution.results[0].attempts == 2
|
|
207
|
+
assert not execution.results[1].passed_on_rerun
|
|
206
208
|
assert (execution.passed, execution.failed, execution.inconclusive) == (1, 1, 1)
|
|
207
209
|
|
|
208
210
|
|
|
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
|