trustgraph/tests/unit/test_base
Cyber MacGeddon 33c4b05756 Fix test suite Prometheus registry pollution and remove default
coverage

The test_metrics.py fixture (added in 4e63dbda) deleted
class-level metric singleton attributes without restoring them. This
stripped the hasattr() guards that prevent duplicate Prometheus
registration, so every subsequent Processor construction in the test
run raised ValueError: Duplicated timeseries. Fix by saving and
restoring the original attributes around each test.

Remove --cov=trustgraph from pytest.ini defaults — the coverage
import hooks interact badly with the trustgraph namespace package,
causing duplicate class loading. Coverage can still be requested
explicitly via the command line.

Also fix missing newline at end of test_subscriber_graceful_shutdown.py.
2026-04-14 11:04:55 +01:00
..
test_async_processor.py Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_async_processor_config.py Config push notify pattern: replace stateful pub/sub with signal+ fetch (#760) 2026-04-06 16:57:27 +01:00
test_cassandra_config.py Basic multitenant support (#583) 2025-12-05 21:45:30 +00:00
test_document_embeddings_client.py Embeddings API scores (#671) 2026-03-09 10:53:44 +00:00
test_flow_base_modules.py Add unit tests for base helper modules (#797) 2026-04-14 10:58:15 +01:00
test_flow_parameter_specs.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_flow_processor.py Config push notify pattern: replace stateful pub/sub with signal+ fetch (#760) 2026-04-06 16:57:27 +01:00
test_llm_service_parameters.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_logging.py Add unit tests for base helper modules (#797) 2026-04-14 10:58:15 +01:00
test_metrics.py Fix test suite Prometheus registry pollution and remove default 2026-04-14 11:04:55 +01:00
test_prompt_client_streaming.py Update to add streaming tests (#600) 2026-01-06 21:48:05 +00:00
test_publisher_graceful_shutdown.py Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_subscriber_graceful_shutdown.py Fix test suite Prometheus registry pollution and remove default 2026-04-14 11:04:55 +01:00
test_subscriber_readiness.py Fix RabbitMQ request/response race and chunker Flow API drift (#779) 2026-04-11 01:29:38 +01:00