mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 19:02:31 +00:00
fix(monitor): isolate offline tests and preserve localized field icons
This commit is contained in:
@@ -7,7 +7,15 @@ import unittest
|
||||
|
||||
SCRIPTS = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(SCRIPTS))
|
||||
from health_monitor import HealthMonitor
|
||||
from health_fixture_modules import load_health_modules
|
||||
|
||||
|
||||
def setUpModule():
|
||||
global HealthMonitor
|
||||
temporary = tempfile.TemporaryDirectory(prefix='idle-bridge-')
|
||||
unittest.addModuleCleanup(temporary.cleanup)
|
||||
monitor, _, _ = load_health_modules(temporary.name)
|
||||
HealthMonitor = monitor.HealthMonitor
|
||||
|
||||
|
||||
class IdleBridgeTests(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user