29 lines
753 B
Python
29 lines
753 B
Python
import random
|
|
|
|
import pytest
|
|
|
|
from constants import user_1
|
|
from test_cases import StatusBackendTestCase
|
|
|
|
|
|
@pytest.mark.accounts
|
|
@pytest.mark.rpc
|
|
class TestAccounts(StatusBackendTestCase):
|
|
|
|
@pytest.mark.parametrize(
|
|
"method, params",
|
|
[
|
|
("accounts_getAccounts", []),
|
|
("accounts_getKeypairs", []),
|
|
("accounts_hasPairedDevices", []),
|
|
("accounts_remainingAccountCapacity", []),
|
|
("multiaccounts_getIdentityImages", [user_1.private_key]),
|
|
|
|
],
|
|
)
|
|
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)
|