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

@ -1,5 +1,5 @@
from . pubsub import PulsarClient
from . pubsub import PulsarClient, get_pubsub
from . async_processor import AsyncProcessor
from . consumer import Consumer
from . producer import Producer

View file

@ -57,7 +57,9 @@ class StructuredDataDiagnosisResponseTranslator(MessageTranslator):
result["descriptor"] = obj.descriptor
if obj.metadata:
result["metadata"] = obj.metadata
if obj.schema_matches is not None:
# For schema-selection, always include schema_matches (even if empty)
# For other operations, only include if non-empty
if obj.operation == "schema-selection" or obj.schema_matches:
result["schema-matches"] = obj.schema_matches
return result