mirror of
https://github.com/status-im/status-go.git
synced 2026-08-31 00:51:12 +00:00
tests-functional/ -> test/functional/ tests-unit-network/ -> test/unit-network/ No Go code changes beyond the two package paths. Every reference follows: Makefile targets, the pytest-lint and reliability workflows, the three Jenkinsfiles, the root Dockerfile, pyrightconfig.json, .gitignore, the benchmark and functional-test scripts, and the docs. All paths inside the moved directories are self-contained (docker compose uses `context: .`, the Python helpers resolve from __file__), so the extra level of nesting does not reach outside. refs #7067
26 lines
841 B
Python
26 lines
841 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.rpc
|
|
class TestResolveSuggestedPath:
|
|
|
|
@pytest.fixture()
|
|
def backend(self, backend_new_profile):
|
|
return backend_new_profile("account-backend")
|
|
|
|
@pytest.mark.parametrize(
|
|
"key_uid",
|
|
[
|
|
"0x9d26312bace61a229c1db5a43d8f9b93d80d25398476405d66479df1504f0438",
|
|
"0xC43f4Ab94eC965a3EE9815C5Df07383057d261A8",
|
|
"test",
|
|
],
|
|
)
|
|
def test_resolve_suggested_path_for_random_key(self, backend, key_uid):
|
|
response = backend.accounts_service.resolve_suggested_path_for_keypair(key_uid)
|
|
assert response == "m/44'/60'/0'/0/0"
|
|
|
|
def test_resolve_suggested_path_for_used_key(self, backend):
|
|
response = backend.accounts_service.resolve_suggested_path_for_keypair(backend.key_uid)
|
|
assert response == "m/44'/60'/0'/0/1"
|