2024-09-18 07:55:47 +00:00
|
|
|
import random
|
2024-10-11 08:08:39 +00:00
|
|
|
|
2024-09-18 07:55:47 +00:00
|
|
|
import pytest
|
2024-10-11 08:08:39 +00:00
|
|
|
|
2024-11-12 13:30:13 +00:00
|
|
|
from constants import user_1
|
2024-10-23 19:48:33 +00:00
|
|
|
from test_cases import StatusBackendTestCase
|
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",
|
|
|
|
[
|
2024-11-12 13:30:13 +00:00
|
|
|
("accounts_getAccounts", []),
|
2024-09-18 07:55:47 +00:00
|
|
|
("accounts_getKeypairs", []),
|
|
|
|
("accounts_hasPairedDevices", []),
|
2024-11-12 13:30:13 +00:00
|
|
|
("accounts_remainingAccountCapacity", []),
|
|
|
|
("multiaccounts_getIdentityImages", [user_1.private_key]),
|
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)
|