-
Couldn't load subscription status.
- Fork 263
test: First draft for settings wrappers and test file added #6984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
611323b
eed34eb
9583dcd
5ef6ef6
a032e5e
d6f006a
52f1fbf
e7e188f
5fc58ab
a1943ab
2e34d37
d58773d
9837fca
d626137
7879025
d66bf11
5eb8f52
20a5993
75439f3
1d7080c
bc85526
bf4c893
a25c5e5
37b67fd
f7a427c
6f39c0a
5560bca
c3bc720
5e77631
3b0af69
4fe3de8
cbe7387
4ad6877
4d480c9
fcd6bc2
8a708ea
c94a52e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ | |
| from utils import fake | ||
| from utils import keys | ||
| from utils.config import Config | ||
| import copy | ||
|
|
||
| NANOSECONDS_PER_SECOND = 1_000_000_000 | ||
|
|
||
|
|
@@ -78,7 +79,7 @@ def __init__(self, await_signals=[], privileged=False, ipv6=USE_IPV6, **kwargs): | |
| self.events = Events() | ||
| self.version = "unknown" | ||
| self.network_id = 1 | ||
|
|
||
| self._boot_api_config = None | ||
| RpcClient.__init__(self) | ||
| ApiClient.__init__(self, self.api_url) | ||
| SignalClient.__init__(self, self.ws_url, await_signals) | ||
|
|
@@ -291,13 +292,15 @@ def create_account_and_login(self, user=user_1, **kwargs): | |
| self._set_display_name(**kwargs) | ||
| method = "CreateAccountAndLogin" | ||
| data = self._create_account_request(user, **kwargs) | ||
| self._boot_api_config = copy.deepcopy(data.get("apiConfig", {})) | ||
| return self.api_request_json(method, data) | ||
|
|
||
| def restore_account_and_login(self, user=user_1, **kwargs): | ||
| self._set_display_name(**kwargs) | ||
| method = "RestoreAccountAndLogin" | ||
| data = self._create_account_request(user, **kwargs) | ||
| data["mnemonic"] = user.passphrase | ||
| self._boot_api_config = copy.deepcopy(data.get("apiConfig", {})) | ||
| return self.api_request_json(method, data) | ||
|
|
||
| def login(self, keyUid, user=user_1): | ||
|
|
@@ -479,3 +482,6 @@ def image_server_tls_cert(self): | |
| method = "ImageServerTLSCert" | ||
| response = self.api_request(method, {}) | ||
| return response.content.decode("utf-8") | ||
|
|
||
| def get_boot_api_config(self): | ||
| return copy.deepcopy(self._boot_api_config) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you already did a deepcopy at line 295 / 303 |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ def test_full_migrate_flow(self): | |
| add_resp = self.account.accounts_service.add_keypair_via_seed_phrase( | ||
| user_1.passphrase, self.account.password, keypair_name, wallet_account_details_derivation | ||
| ) | ||
| self.account.accounts_service.migrate_non_profile_keycard_keypair_to_app | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what's with this change? |
||
| assert "error" not in add_resp | ||
| add_result = add_resp | ||
| assert add_result is not None | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's with the changes in the .go files?