[#3] Move source code of testlib to src directory
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
parent
c48f7b7ff2
commit
f5cd6a1954
41 changed files with 230 additions and 207 deletions
37
src/neofs_testlib/cli/neogo/go.py
Normal file
37
src/neofs_testlib/cli/neogo/go.py
Normal file
|
@ -0,0 +1,37 @@
|
|||
from typing import Optional
|
||||
|
||||
from neofs_testlib.cli.neogo.candidate import NeoGoCandidate
|
||||
from neofs_testlib.cli.neogo.contract import NeoGoContract
|
||||
from neofs_testlib.cli.neogo.db import NeoGoDb
|
||||
from neofs_testlib.cli.neogo.nep17 import NeoGoNep17
|
||||
from neofs_testlib.cli.neogo.node import NeoGoNode
|
||||
from neofs_testlib.cli.neogo.query import NeoGoQuery
|
||||
from neofs_testlib.cli.neogo.version import NeoGoVersion
|
||||
from neofs_testlib.cli.neogo.wallet import NeoGoWallet
|
||||
from neofs_testlib.shell import Shell
|
||||
|
||||
|
||||
class NeoGo:
|
||||
candidate: Optional[NeoGoCandidate] = None
|
||||
contract: Optional[NeoGoContract] = None
|
||||
db: Optional[NeoGoDb] = None
|
||||
nep17: Optional[NeoGoNep17] = None
|
||||
node: Optional[NeoGoNode] = None
|
||||
query: Optional[NeoGoQuery] = None
|
||||
version: Optional[NeoGoVersion] = None
|
||||
wallet: Optional[NeoGoWallet] = None
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
shell: Shell,
|
||||
neo_go_exec_path: Optional[str] = None,
|
||||
config_path: Optional[str] = None,
|
||||
):
|
||||
self.candidate = NeoGoCandidate(shell, neo_go_exec_path, config_path=config_path)
|
||||
self.contract = NeoGoContract(shell, neo_go_exec_path, config_path=config_path)
|
||||
self.db = NeoGoDb(shell, neo_go_exec_path, config_path=config_path)
|
||||
self.nep17 = NeoGoNep17(shell, neo_go_exec_path, config_path=config_path)
|
||||
self.node = NeoGoNode(shell, neo_go_exec_path, config_path=config_path)
|
||||
self.query = NeoGoQuery(shell, neo_go_exec_path, config_path=config_path)
|
||||
self.version = NeoGoVersion(shell, neo_go_exec_path, config_path=config_path)
|
||||
self.wallet = NeoGoWallet(shell, neo_go_exec_path, config_path=config_path)
|
Loading…
Add table
Add a link
Reference in a new issue