mirror of
https://github.com/nicolargo/glances.git
synced 2025-12-23 22:18:31 -05:00
Update requirements file and add some tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
7
tests-data/issues/issue869.py
Normal file
7
tests-data/issues/issue869.py
Normal 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()
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user