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
27 lines
972 B
Python
27 lines
972 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.accounts
|
|
@pytest.mark.rpc
|
|
class TestAppGeneral:
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def setup_backend(self, backend_new_profile):
|
|
"""Initialize one backend for each test function"""
|
|
self.rpc_client = backend_new_profile("rpc_client")
|
|
|
|
def test_get_currencies(self):
|
|
result = self.rpc_client.appgeneral_service.get_currencies()
|
|
assert result[0].get("emoji") == "🇺🇸"
|
|
assert result[0].get("name") == "United States Dollar"
|
|
assert result[0].get("shortName") == "USD"
|
|
assert result[0].get("isPopular") is True
|
|
assert result[0].get("isToken") is False
|
|
assert result[0].get("symbol") == "$"
|
|
assert result[0].get("unicode") == "1f1fa-1f1f8"
|
|
|
|
@pytest.mark.skip(reason="Skipped due to https://github.com/status-im/status-go/issues/6957")
|
|
def test_version(self):
|
|
result = self.rpc_client.appgeneral_service.version()
|
|
assert result != ""
|