refactor: ignore public key argument in dc_preconfigure_keypair()

Public key can be extracted from the secret key file.
This commit is contained in:
link2xt
2023-09-12 01:03:33 +00:00
parent ef4d2a7ed0
commit 532e9cb09a
5 changed files with 10 additions and 12 deletions

View File

@@ -67,10 +67,9 @@ class TestOfflineAccountBasic:
def test_preconfigure_keypair(self, acfactory, data):
ac = acfactory.get_unconfigured_account()
alice_public = data.read_path("key/alice-public.asc")
alice_secret = data.read_path("key/alice-secret.asc")
assert alice_public and alice_secret
ac._preconfigure_keypair("alice@example.org", alice_public, alice_secret)
assert alice_secret
ac._preconfigure_keypair("alice@example.org", alice_secret)
def test_getinfo(self, acfactory):
ac1 = acfactory.get_unconfigured_account()