From 9e751932b5b846b9e8a1de0d4153dd03acf57764 Mon Sep 17 00:00:00 2001 From: Erwan Rouchet <rouchet@teklia.com> Date: Fri, 7 Apr 2023 14:43:17 +0200 Subject: [PATCH] Print format parameters on SQL validation file creation --- arkindex/project/tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arkindex/project/tests/__init__.py b/arkindex/project/tests/__init__.py index 457a105ec0..eb0b476568 100644 --- a/arkindex/project/tests/__init__.py +++ b/arkindex/project/tests/__init__.py @@ -74,7 +74,8 @@ class _AssertExactQueriesContext(CaptureQueriesContext): else: raise AssertionError( f'Could not assert on SQL queries; the file at {self.path} did not exist. ' - 'A file has been created with the current SQL queries, please check it manually.' + 'A file has been created with the current SQL queries, please check it manually.\n' + f'Parameters: {self.params!r}' ) # Ignore newlines in the expected SQL, otherwise the reformatting might have duplicate line breaks -- GitLab