From 1fd671cc2290b6cdde8373798613ce972f87a1c0 Mon Sep 17 00:00:00 2001 From: Calum Eadie <199819990+ce10-sanger@users.noreply.github.com> Date: Wed, 20 May 2026 13:54:51 +0100 Subject: [PATCH] Safer for tests to use secure variant i.e. might be copied to production code --- CHANGELOG | 5 +++++ tests/conftest.py | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 18709fd..ffe2d23 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +### Changes + +* Change tests to use secure variant of database config that stops logging secrets + * i.e. might be copied to production code + ## [1.0.0] - 2026-04-24 ### Changed diff --git a/tests/conftest.py b/tests/conftest.py index bd1b4da..ec826bd 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,7 +20,7 @@ import json import os import re -from dataclasses import dataclass +from dataclasses import dataclass, field from importlib import import_module from pathlib import Path @@ -39,7 +39,8 @@ class TrackingConfig: dbport: str dbuser: str dbname: str - dbpass: str + # Safer for tests to use secure variant i.e. might be copied to production code + dbpass: str = field(repr=False) @property def url(self):