sicherheitsupdate

This commit is contained in:
stephan
2025-06-29 08:33:19 +02:00
parent 4ed4d69b21
commit 55f6d0816c
9 changed files with 286 additions and 247 deletions

9
tests/test_proginfo.py Normal file
View File

@ -0,0 +1,9 @@
from proginfo import get_process_info
def test_process_info_returns_list():
data = get_process_info()
assert isinstance(data, list)
if data: # Teste nur, wenn Prozesse vorhanden sind
proc = data[0]
for key in ["pid", "name", "user", "cpu", "memory", "status", "start_time", "runtime_seconds"]:
assert key in proc