mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-05-13 12:16:42 +00:00
- Implemented TemplateResponseDto and UpdateTemplateRequestDto for subscription templates. - Created models for system statistics including CPU, memory, and bandwidth. - Developed user models for user creation, updates, and responses. - Added bulk actions for user updates and statistics tracking. - Introduced tests for authentication, bandwidth statistics, hosts, inbounds, key generation, nodes, subscriptions, and user management. - Enhanced utility functions for generating random strings, emails, and date ranges for testing.
10 lines
378 B
Python
10 lines
378 B
Python
from remnawave_api.models import NodesUsageResponseDto
|
|
from tests.utils import generate_isoformat_range
|
|
|
|
|
|
async def test_bandwidthstats(remnawave):
|
|
start, end = generate_isoformat_range()
|
|
nodes_usage_by_range = await remnawave.bandwidthstats.get_nodes_usage_by_range(
|
|
start=start, end=end
|
|
)
|
|
assert isinstance(nodes_usage_by_range, NodesUsageResponseDto)
|