Update requirements file and add some tests

This commit is contained in:
nicolargo
2025-11-04 21:41:15 +01:00
parent ef5ef9eb8a
commit f1bd18a3a5
6 changed files with 17 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ exceptiongroup==1.2.2 ; python_full_version < '3.11'
# via
# anyio
# pytest
fastapi==0.120.4
fastapi==0.121.0
# via glances
geomet==1.1.0
# via cassandra-driver
@@ -132,7 +132,7 @@ protobuf==4.25.8 ; python_full_version < '3.10'
# via bernhard
protobuf==6.33.0 ; python_full_version >= '3.10'
# via bernhard
psutil==7.1.2
psutil==7.1.3
# via glances
psycopg==3.2.12
# via glances
@@ -220,7 +220,7 @@ sniffio==1.3.1
# elasticsearch
sparklines==0.7.0
# via glances
starlette==0.49.2
starlette==0.49.3
# via fastapi
statsd==4.0.1
# via glances

View File

@@ -282,7 +282,7 @@ protobuf==4.25.8 ; python_full_version < '3.10'
# via
# googleapis-common-protos
# opentelemetry-proto
psutil==7.1.2
psutil==7.1.3
# via memory-profiler
py-spy==0.4.1
pycparser==2.23 ; implementation_name != 'PyPy' and implementation_name != 'pypy' and os_name == 'nt'
@@ -414,7 +414,7 @@ sphinxcontrib-serializinghtml==2.0.0
# via sphinx
sse-starlette==3.0.3 ; python_full_version >= '3.10'
# via mcp
starlette==0.49.2 ; python_full_version >= '3.10'
starlette==0.49.3 ; python_full_version >= '3.10'
# via mcp
tomli==2.0.2
# via

View File

@@ -20,7 +20,7 @@ docker==7.1.0
# via glances
exceptiongroup==1.2.2 ; python_full_version < '3.11'
# via anyio
fastapi==0.120.4
fastapi==0.121.0
# via glances
h11==0.16.0
# via uvicorn
@@ -36,7 +36,7 @@ packaging==25.0
# via glances
podman==5.6.0
# via glances
psutil==7.1.2
psutil==7.1.3
# via glances
pydantic==2.12.3
# via fastapi
@@ -59,7 +59,7 @@ six==1.17.0
# python-dateutil
sniffio==1.3.1
# via anyio
starlette==0.49.2
starlette==0.49.3
# via fastapi
tomli==2.0.2 ; python_full_version < '3.11'
# via podman

View File

@@ -8,7 +8,7 @@ markupsafe==3.0.3
# via jinja2
packaging==25.0
# via glances
psutil==7.1.2
psutil==7.1.3
# via glances
shtab==1.7.2 ; sys_platform != 'win32'
# via glances

View File

@@ -0,0 +1,7 @@
# Install PyWebview before running this test
# But need Qt installed on the system...
import webview
webview.create_window('Hello world', 'http://localhost:61208/')
webview.start()

View File

@@ -36,5 +36,5 @@ def test_perf_update(glances_stats):
print(f"{counter} iterations. From cache: {from_cache} | From update: {from_update}")
assert counter > test_duration
assert from_update < from_cache
assert from_cache >= test_duration * 10
assert from_cache >= test_duration * 2
assert from_update >= (test_duration / 2) - 1