Introduces test infrastructure and mockup classes for `dbus_middleware1`. Includes `BusProvider` test setup, fake device implementations, and initialization logic to support session bus testing. Enhances testability and isolation of the D-Bus middleware components.
8 lines
223 B
Python
8 lines
223 B
Python
# -*- coding: utf-8 -*-
|
|
# SPDX-FileCopyrightText: 2025 KUNBUS GmbH
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
from os import environ
|
|
|
|
# D-BUS needs a DISPLAY variable to work with the session bus
|
|
environ["DISPLAY"] = ":0"
|