From 46b4706335ceebdddc26537160016078b3a61aef Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Tue, 31 Dec 2024 19:52:32 +0100 Subject: [PATCH] FIX: once again --- ...ontend_tkinter_parameter_editor_documentation_frame_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unittests/frontend_tkinter_parameter_editor_documentation_frame_test.py b/unittests/frontend_tkinter_parameter_editor_documentation_frame_test.py index 6d9a8db..201762e 100755 --- a/unittests/frontend_tkinter_parameter_editor_documentation_frame_test.py +++ b/unittests/frontend_tkinter_parameter_editor_documentation_frame_test.py @@ -10,6 +10,7 @@ SPDX-License-Identifier: GPL-3.0-or-later """ +import os import tkinter as tk import unittest from tkinter import ttk @@ -22,6 +23,8 @@ class TestDocumentationFrame(unittest.TestCase): """Test the DocumentationFrame class.""" def setUp(self) -> None: + if os.getenv("GITHUB_ACTIONS"): + os.environ["DISPLAY"] = ":99" # Set DISPLAY environment variable for headless mode self.root = tk.Tk() self.local_filesystem = Mock() self.local_filesystem.get_documentation_text_and_url.return_value = ("Sample blog text", "http://example.com/blog")