/data and /tmp standarization

This commit is contained in:
Adam Outler
2025-11-04 22:26:35 +00:00
parent 90a07c61eb
commit 5b871865db
250 changed files with 7462 additions and 4940 deletions

View File

@@ -16,7 +16,7 @@ import os
from unittest.mock import Mock, patch, MagicMock
# Add the server directory to the path for imports
INSTALL_PATH = "/app"
INSTALL_PATH = os.getenv('NETALERTX_APP', '/app')
sys.path.extend([f"{INSTALL_PATH}/server"])
sys.path.append('/home/dell/coding/bash/10x-agentic-setup/netalertx-sql-fix/server')
@@ -339,7 +339,11 @@ class TestSecurityBenchmarks(unittest.TestCase):
def test_memory_usage_parameter_generation(self):
"""Test memory usage of parameter generation."""
import psutil
try:
import psutil
except ImportError: # pragma: no cover - optional dependency
self.skipTest("psutil not available")
return
import os
process = psutil.Process(os.getpid())