status-go/tests-functional/tests/test_accounts.py

23 lines
661 B
Python
Raw Normal View History

import random
import pytest
2024-11-11 14:40:05 +00:00
from src.steps.common import StatusBackendTestCase
2024-11-11 14:40:05 +00:00
@pytest.mark.usefixtures("init_status_backend")
@pytest.mark.accounts
@pytest.mark.rpc
2024-10-23 19:48:33 +00:00
class TestAccounts(StatusBackendTestCase):
@pytest.mark.parametrize(
"method, params",
[
("accounts_getKeypairs", []),
("accounts_hasPairedDevices", []),
2024-11-11 14:40:05 +00:00
("accounts_remainingAccountCapacity", []),
],
)
def test_(self, method, params):
_id = str(random.randint(1, 8888))
response = self.rpc_client.rpc_valid_request(method, params, _id)
self.rpc_client.verify_json_schema(response.json(), method)