File 0001-Adapt-tests-to-latest-pygments.patch of Package python-pyramid-debugtoolbar

From 54e7ea7dc7a0986213975419a6ea6566e2102835 Mon Sep 17 00:00:00 2001
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
Date: Tue, 25 Feb 2025 14:35:23 +0100
Subject: [PATCH] Adapt tests to latest pygments

---
 tests/test_panels/test_sqla.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Index: pyramid_debugtoolbar-4.12.1/tests/test_panels/test_sqla.py
===================================================================
--- pyramid_debugtoolbar-4.12.1.orig/tests/test_panels/test_sqla.py
+++ pyramid_debugtoolbar-4.12.1/tests/test_panels/test_sqla.py
@@ -77,9 +77,9 @@ class _TestSQLAlchemyPanel(_TestDebugtoo
 
         """
         self.assertIn(
-            '<span style="color: #008800; font-weight: bold">SELECT</span>'
-            '<span style="color: #bbbbbb"> </span>'
-            '<span style="color: #008800; font-weight: bold">NULL</span>;',
+            '<span style="color: #080; font-weight: bold">SELECT</span>'
+            '<span style="color: #BBB"> </span>'
+            '<span style="color: #080; font-weight: bold">NULL</span>;',
             resp.text,
         )
 
@@ -88,11 +88,11 @@ class _TestSQLAlchemyPanel(_TestDebugtoo
         These are rendered as comments
         """
         self.assertIn(
-            '<span style="color: #888888">-- [event] begin</span>',
+            '<span style="color: #888">-- [event] begin</span>',
             resp.text,
         )
         self.assertIn(
-            '<span style="color: #888888">-- [event] rollback</span>',
+            '<span style="color: #888">-- [event] rollback</span>',
             resp.text,
         )
 
@@ -101,11 +101,11 @@ class _TestSQLAlchemyPanel(_TestDebugtoo
         These are rendered as comments
         """
         self.assertIn(
-            '<span style="color: #888888">-- [event] begin</span>',
+            '<span style="color: #888">-- [event] begin</span>',
             resp.text,
         )
         self.assertIn(
-            '<span style="color: #888888">-- [event] commit</span',
+            '<span style="color: #888">-- [event] commit</span',
             resp.text,
         )
 
openSUSE Build Service is sponsored by