mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-27 11:51:50 +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.
15 lines
437 B
Python
15 lines
437 B
Python
import pytest
|
|
|
|
from remnawave_api.models import LoginRequestDto, LoginResponseDto
|
|
from tests.conftest import REMNAWAVE_ADMIN_PASSWORD, REMNAWAVE_ADMIN_USERNAME
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_auth(remnawave):
|
|
login = await remnawave.auth.login(
|
|
LoginRequestDto(
|
|
username=REMNAWAVE_ADMIN_USERNAME,
|
|
password=REMNAWAVE_ADMIN_PASSWORD,
|
|
)
|
|
)
|
|
assert isinstance(login, LoginResponseDto)
|