Change mamba version with update imports

Signed-off-by: Aleskei Chetaev <alex.chetaev@gmail.com>
support/v0.36
a.chetaev 2023-02-06 18:12:04 +01:00 committed by Aleksey Chetaev
parent 54ac125f40
commit cea3ab5126
7 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# ignore IDE files
.vscode
.idea
# ignore temp files under any path
.DS_Store

View File

@ -19,12 +19,12 @@ dependencies = [
"allure-python-commons>=2.9.45",
"docker>=4.4.0",
"importlib_metadata>=5.0; python_version < '3.10'",
"neo-mamba==0.10.0",
"neo-mamba==1.0.0",
"paramiko>=2.10.3",
"pexpect>=4.8.0",
"requests>=2.28.0",
]
requires-python = ">=3.9"
requires-python = ">=3.10"
[project.optional-dependencies]
dev = ["black", "bumpver", "isort", "pre-commit"]

View File

@ -1,7 +1,7 @@
allure-python-commons==2.9.45
docker==4.4.0
importlib_metadata==5.0.0
neo-mamba==0.10.0
neo-mamba==1.0.0
paramiko==2.10.3
pexpect==4.8.0
requests==2.28.1

View File

@ -3,7 +3,7 @@ import binascii
import json
import base58
from neo3 import wallet as neo3_wallet
from neo3.wallet import wallet as neo3_wallet
def str_to_ascii_hex(input: str) -> str:

View File

@ -1,7 +1,8 @@
import json
import logging
from neo3 import wallet as neo3_wallet
from neo3.wallet import wallet as neo3_wallet
from neo3.wallet import account as neo3_account
logger = logging.getLogger("neofs.testlib.utils")
@ -14,7 +15,7 @@ def init_wallet(wallet_path: str, wallet_password: str):
wallet_password: The password for new wallet.
"""
wallet = neo3_wallet.Wallet()
account = neo3_wallet.Account.create_new(wallet_password)
account = neo3_account.Account.create_new(wallet_password)
wallet.account_add(account)
with open(wallet_path, "w") as out:
json.dump(wallet.to_json(), out)

View File

@ -3,7 +3,6 @@ from unittest import SkipTest, TestCase
from neofs_testlib.shell.interfaces import CommandOptions, InteractiveInput
from neofs_testlib.shell.ssh_shell import SSHShell
from tests.helpers import format_error_details, get_output_lines

View File

@ -3,7 +3,7 @@ import os
from unittest import TestCase
from uuid import uuid4
from neo3.wallet import Wallet
from neo3.wallet.wallet import Wallet
from neofs_testlib.utils.wallet import init_wallet, get_last_address_from_wallet