bdd: add tests for valid debug output

This commit is contained in:
Sarah Hoffmann
2023-03-09 20:10:51 +01:00
parent db1aa4d02e
commit 2b7eb4906a
4 changed files with 39 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ class HTMLLogger(BaseLogger):
.compile(conn.sync_engine, compile_kwargs={"literal_binds": True}))
if CODE_HIGHLIGHT:
sqlstr = highlight(sqlstr, PostgresLexer(),
HtmlFormatter(nowrap=True, lineseparator='<br>'))
HtmlFormatter(nowrap=True, lineseparator='<br />'))
self._write(f'<div class="highlight"><code class="lang-sql">{sqlstr}</code></div>')
else:
self._write(f'<code class="lang-sql">{sqlstr}</code>')