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