Remnawave_python-sdk/tests/test_subscriptions_settings.py
Artem f47cda9378
feat: Add models for subscriptions, users, and system statistics
- 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.
2025-04-21 20:44:27 +02:00

17 lines
560 B
Python

import pytest
from remnawave_api.models import (
SubscriptionSettingsResponseDto,
UpdateSubscriptionSettingsRequestDto,
)
@pytest.mark.asyncio
async def test_subscriptions_settings(remnawave):
settings = await remnawave.subscriptions_settings.get_settings()
assert isinstance(settings, SubscriptionSettingsResponseDto)
update_settings = await remnawave.subscriptions_settings.update_settings(
UpdateSubscriptionSettingsRequestDto(uuid=settings.uuid)
)
assert isinstance(update_settings, SubscriptionSettingsResponseDto)