13 lines
358 B
Python
13 lines
358 B
Python
from ragcore.config import Settings
|
|
from ragcore.worker import _configured_secrets
|
|
|
|
|
|
def test_worker_logging_uses_all_configured_secret_values() -> None:
|
|
settings = Settings(
|
|
secret_key="s" * 40,
|
|
api_token_pepper="p" * 40,
|
|
qdrant_api_key="q" * 40,
|
|
)
|
|
|
|
assert _configured_secrets(settings) == ("s" * 40, "p" * 40, "q" * 40)
|