Skip to content

Commit b4419f7

Browse files
committed
Fix integration test failures
1 parent af99b76 commit b4419f7

File tree

7 files changed

+22
-7
lines changed

7 files changed

+22
-7
lines changed

convex_api/tool/command/account_balance_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class AccountBalanceArgs(BaseArgs):
2525
command: Literal['account']
2626
account_command: Literal['balance']
27-
name_address: str
27+
name_address: Union[str, int]
2828

2929

3030
class AccountBalanceCommand(CommandBase):

convex_api/tool/command/account_fund_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AccountFundArgs(BaseArgs):
2323
command: Literal['account']
2424
account_command: Literal['fund']
2525
amount: int
26-
name_address: str
26+
name_address: Union[str, int]
2727

2828

2929
class AccountFundCommand(CommandBase):

convex_api/tool/command/account_info_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class AccountInfoArgs(BaseArgs):
2323
command: Literal['account']
2424
account_command: Literal['info']
25-
name_address: str
25+
name_address: Union[str, int]
2626

2727

2828
class AccountInfoCommand(CommandBase):

convex_api/tool/command/account_topup_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class AccountTopupArgs(BaseArgs):
2323
command: Literal['account']
2424
account_command: Literal['topup']
25-
name_address: str
25+
name_address: Union[str, int]
2626

2727

2828
class AccountTopupCommand(CommandBase):

convex_api/tool/command/query_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class QueryArgs(BaseArgs):
2222
command: Literal['query']
2323
query: str
24-
name_address: str
24+
name_address: Union[str, int]
2525

2626

2727
class QueryCommand(CommandBase):

convex_api/tool/command/submit_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class SubmitArgs(BaseArgs):
2323
command: Literal['submit']
2424
submit: str
25-
name_address: str
25+
name_address: Union[str, int]
2626

2727

2828
class SubmitCommand(CommandBase):

tests/intergration/tool/test_account_command.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
def test_account_create_command(convex_url: str):
2222
args = Mock()
2323

24+
args.command = 'account'
25+
args.account_command = 'create'
2426
args.url = convex_url
2527
args.password = 'test_password'
2628
args.keyfile = None
@@ -41,6 +43,8 @@ def test_account_create_command(convex_url: str):
4143
def test_account_balance_command(convex_url: str, test_account: Account):
4244
args = Mock()
4345

46+
args.command = 'account'
47+
args.account_command = 'balance'
4448
args.url = convex_url
4549
args.name_address = test_account.address
4650

@@ -49,7 +53,8 @@ def test_account_balance_command(convex_url: str, test_account: Account):
4953
command.execute(args, output)
5054
assert(output.values['balance'])
5155

52-
56+
args.command = 'account'
57+
args.account_command = 'balance'
5358
args.url = convex_url
5459
args.name_address = test_account.name
5560

@@ -62,6 +67,8 @@ def test_account_balance_command(convex_url: str, test_account: Account):
6267
def test_account_info_command(convex_url: str, test_account: Account):
6368
args = Mock()
6469

70+
args.command = 'account'
71+
args.account_command = 'info'
6572
args.url = convex_url
6673
args.name_address = test_account.address
6774

@@ -77,6 +84,8 @@ def test_account_info_command(convex_url: str, test_account: Account):
7784
args.url = convex_url
7885
args.name_address = test_account.name
7986

87+
args.command = 'account'
88+
args.account_command = 'info'
8089
command = AccountInfoCommand()
8190
output = Output()
8291
command.execute(args, output)
@@ -89,6 +98,8 @@ def test_account_info_command(convex_url: str, test_account: Account):
8998
def test_account_name_resolve_command(convex_url: str, test_account: Account):
9099
args = Mock()
91100

101+
args.command = 'account'
102+
args.account_command = 'resolve'
92103
args.url = convex_url
93104
args.name = test_account.name
94105

@@ -100,6 +111,8 @@ def test_account_name_resolve_command(convex_url: str, test_account: Account):
100111
def test_account_topup_command(convex_url: str, test_account: Account):
101112
args = Mock()
102113

114+
args.command = 'account'
115+
args.account_command = 'topup'
103116
args.url = convex_url
104117
args.keywords = test_account.key_pair.export_to_mnemonic
105118
args.keyfile = None
@@ -115,6 +128,8 @@ def test_account_topup_command(convex_url: str, test_account: Account):
115128
def test_account_fund_command(convex_url: str, test_account: Account):
116129
args = Mock()
117130

131+
args.command = 'account'
132+
args.account_command = 'fund'
118133
args.url = convex_url
119134
args.keywords = test_account.key_pair.export_to_mnemonic
120135
args.keyfile = None

0 commit comments

Comments
 (0)