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

26 lines
610 B
Python
Raw Permalink Normal View History

import random
2024-10-11 08:08:39 +00:00
import pytest
2024-10-11 08:08:39 +00:00
2024-10-23 19:48:33 +00:00
from test_cases import StatusBackendTestCase
@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", []),
("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)