rusticai-testing 1.2.5__tar.gz → 1.3.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.
Files changed (19) hide show
  1. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/PKG-INFO +3 -3
  2. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/pyproject.toml +12 -11
  3. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/messaging/base_test_backend.py +5 -9
  4. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/messaging/base_test_delivery_guarantees.py +6 -9
  5. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/README.md +0 -0
  6. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/__init__.py +0 -0
  7. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/agent_ext/__init__.py +0 -0
  8. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/agent_ext/base_test_kvstore.py +0 -0
  9. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/agents/__init__.py +0 -0
  10. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/agents/sample_agents.py +0 -0
  11. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/agents/simple_agent.py +0 -0
  12. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/execution/__init__.py +0 -0
  13. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/execution/base_test_integration.py +0 -0
  14. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/execution/integration_agents.py +0 -0
  15. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/helpers.py +0 -0
  16. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/messaging/__init__.py +0 -0
  17. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/messaging/base_test_messaging.py +0 -0
  18. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/state/__init__.py +0 -0
  19. {rusticai_testing-1.2.5 → rusticai_testing-1.3.0}/src/rustic_ai/testing/state/base_test_state_mgr.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rusticai-testing
3
- Version: 1.2.5
3
+ Version: 1.3.0
4
4
  Summary: Test Utilities for Rustic AI Framework
5
5
  License-Expression: Apache-2.0
6
6
  Author: Dragonscale Industries Inc.
@@ -8,8 +8,8 @@ Author-email: dev@dragonscale.ai
8
8
  Requires-Python: >=3.13,<3.14
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Classifier: Programming Language :: Python :: 3.13
11
- Requires-Dist: pytest (>=9.0.3,<10.0.0)
12
- Requires-Dist: rusticai-core (>=1.2.6,<1.3.0)
11
+ Requires-Dist: pytest (>=9.1.1,<10.0.0)
12
+ Requires-Dist: rusticai-core (>=1.3.0,<1.4.0)
13
13
  Project-URL: Homepage, https://www.rustic.ai/
14
14
  Project-URL: Repository, https://github.com/rustic-ai/rustic-ai
15
15
  Project-URL: Rustic AI Core, https://pypi.org/project/rusticai-core/
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
5
5
 
6
6
  [project]
7
7
  name = "rusticai-testing"
8
- version = "1.2.5"
8
+ version = "1.3.0"
9
9
  description = "Test Utilities for Rustic AI Framework"
10
10
  authors = [{name = "Dragonscale Industries Inc.", email = "dev@dragonscale.ai"}]
11
11
  license = "Apache-2.0"
@@ -19,8 +19,8 @@ urls = { Homepage = "https://www.rustic.ai/", Repository = "https://github.com/r
19
19
  packages = [{ include = "rustic_ai", from = "src" }]
20
20
 
21
21
  [tool.poetry.dependencies]
22
- rusticai-core = { version = "1.2.6"}
23
- pytest = "^9.0.3"
22
+ rusticai-core = { version = "1.3.0"}
23
+ pytest = "^9.1.1"
24
24
 
25
25
  [tool.poetry-monorepo.deps]
26
26
 
@@ -28,12 +28,12 @@ pytest = "^9.0.3"
28
28
  optional = true
29
29
 
30
30
  [tool.poetry.group.dev.dependencies]
31
- pytest = "^9.0.3"
32
- black = { version = "^26.3.1", extras = ["jupyter"] }
33
- flake8 = "^7.1.2"
34
- tox = "^4.24.1"
35
- isort = "^6.0.0"
36
- mypy = "^1.15.0"
31
+ pytest = "^9.1.1"
32
+ black = { version = "^26.5.1", extras = ["jupyter"] }
33
+ flake8 = "^7.3.0"
34
+ tox = "^4.57.1"
35
+ isort = "^8.0.1"
36
+ mypy = "^2.3.0"
37
37
 
38
38
  [tool.black]
39
39
  line-length = 120
@@ -64,6 +64,7 @@ explicit_package_bases = true
64
64
  profile = "black"
65
65
  force_sort_within_sections = true # For the sorting order issues
66
66
  lines_between_sections = 1 # For the newline issue
67
- known_third_party = ["pydantic"]
68
- known_first_party = ["rustic_ai.core"]
67
+ known_third_party = ["pydantic", "fastapi", "starlette", "uvicorn", "ray", "dotenv", "openai", "litellm", "pytest", "playwright", "redis", "serpapi", "vertexai"]
68
+ known_first_party = ["rustic_ai"]
69
+ known_local_folder = ["core", "rustic_ai.testing"]
69
70
 
@@ -430,9 +430,7 @@ class BaseTestBackendABC(ABC):
430
430
  # Per-client subscribe tests (client_id parameter)
431
431
  # =========================================================================
432
432
 
433
- def test_subscribe_per_client(
434
- self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, request
435
- ):
433
+ def test_subscribe_per_client(self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, request):
436
434
  """Smoke test: per-client subscribe delivers messages to the registered handler."""
437
435
  messages: List[Message] = []
438
436
  namespace = request.node.name
@@ -484,9 +482,7 @@ class BaseTestBackendABC(ABC):
484
482
  backend.unsubscribe(topic, client_id="client_A")
485
483
  backend.unsubscribe(topic, client_id="client_B")
486
484
 
487
- def test_unsubscribe_per_client(
488
- self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, request
489
- ):
485
+ def test_unsubscribe_per_client(self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, request):
490
486
  """After unsubscribing client_A, only client_B receives subsequent messages."""
491
487
  messages_a: List[Message] = []
492
488
  messages_b: List[Message] = []
@@ -599,9 +595,9 @@ class BaseTestBackendABC(ABC):
599
595
  for i, (msg_id, kind) in enumerate(events):
600
596
  if kind == "start" and i > 0:
601
597
  prev_msg_id, prev_kind = events[i - 1]
602
- assert prev_kind == "end", (
603
- f"Found concurrent processing: event[{i - 1}]={events[i - 1]}, event[{i}]={events[i]}"
604
- )
598
+ assert (
599
+ prev_kind == "end"
600
+ ), f"Found concurrent processing: event[{i - 1}]={events[i - 1]}, event[{i}]={events[i]}"
605
601
 
606
602
  backend.unsubscribe(topic, client_id="client_A")
607
603
 
@@ -83,9 +83,7 @@ class BaseTestBackendDeliveryGuarantees(ABC):
83
83
 
84
84
  backend.unsubscribe(topic, client_id="eo_client")
85
85
 
86
- def test_backlog_replay(
87
- self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, namespace: str
88
- ):
86
+ def test_backlog_replay(self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, namespace: str):
89
87
  """
90
88
  Store 3 messages BEFORE subscribing, then subscribe and verify all 3 are delivered.
91
89
  """
@@ -115,9 +113,7 @@ class BaseTestBackendDeliveryGuarantees(ABC):
115
113
 
116
114
  backend.unsubscribe(topic, client_id="backlog_client")
117
115
 
118
- def test_crash_recovery(
119
- self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, namespace: str
120
- ):
116
+ def test_crash_recovery(self, backend: MessagingBackend, generator: GemstoneGenerator, topic: str, namespace: str):
121
117
  """
122
118
  Subscribe, process 3 messages, unsubscribe (simulate crash), store 2 more,
123
119
  re-subscribe with SAME client_id, verify exactly 2 new messages delivered.
@@ -220,9 +216,10 @@ class BaseTestBackendDeliveryGuarantees(ABC):
220
216
  assert delivery_event.wait(timeout=10.0), "Expected later messages to keep flowing after dead-lettering"
221
217
 
222
218
  with lock:
223
- assert received == [msgs[1].id, msgs[2].id], (
224
- f"Expected only later messages to be delivered successfully, got {received}"
225
- )
219
+ assert received == [
220
+ msgs[1].id,
221
+ msgs[2].id,
222
+ ], f"Expected only later messages to be delivered successfully, got {received}"
226
223
  first_msg_id = msgs[0].id
227
224
  assert call_counts.get(first_msg_id, 0) == 1, "Failed message should not be retried after dead-lettering"
228
225
  assert len(dead_letters) == 1, f"Expected one dead-letter message, got {len(dead_letters)}"