Files
status-go/test/functional/tests/test_resolve_suggested_path.py
Igor Sirotin b7ba8e52d6 refactor: move test suites under test/
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
2026-08-20 20:59:45 +02:00

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"