Fix tests (#593)

* Fix unit/integration/contract tests which were broken by messaging fabric work
This commit is contained in:
cybermaggedon 2025-12-19 08:53:21 +00:00 committed by GitHub
parent 34eb083836
commit 5304f96fe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 461 additions and 439 deletions

View file

@ -257,7 +257,6 @@ class TestAgentMessageContracts:
# Act
request = AgentRequest(
question="What comes next?",
plan="Multi-step plan",
state="processing",
history=history_steps
)
@ -588,7 +587,6 @@ class TestSerializationContracts:
request = AgentRequest(
question="Test with array",
plan="Test plan",
state="Test state",
history=steps
)

View file

@ -189,6 +189,7 @@ class TestObjectsCassandraContracts:
assert result == expected_val
assert isinstance(result, expected_type) or result is None
@pytest.mark.skip(reason="ExtractedObject is a dataclass, not a Pulsar Record type")
def test_extracted_object_serialization_contract(self):
"""Test that ExtractedObject can be serialized/deserialized correctly"""
# Create test object
@ -408,6 +409,7 @@ class TestObjectsCassandraContractsBatch:
assert isinstance(single_batch_object.values[0], dict)
assert single_batch_object.values[0]["customer_id"] == "CUST999"
@pytest.mark.skip(reason="ExtractedObject is a dataclass, not a Pulsar Record type")
def test_extracted_object_batch_serialization_contract(self):
"""Test that batched ExtractedObject can be serialized/deserialized correctly"""
# Create batch object