Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
clive
Commits
e6cacb46
Commit
e6cacb46
authored
1 month ago
by
Jakub Ziebinski
Browse files
Options
Downloads
Patches
Plain Diff
Update expected error in the `test_withdrawal_cancel_invalid`
See:
hive@a80969d0
parent
49951d5c
No related branches found
No related tags found
2 merge requests
!600
v1.27.5.21 Release
,
!583
Remove helpy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/functional/cli/process/test_process_savings_withdrawal_cancel.py
+4
-2
4 additions, 2 deletions
...nal/cli/process/test_process_savings_withdrawal_cancel.py
with
4 additions
and
2 deletions
tests/functional/cli/process/test_process_savings_withdrawal_cancel.py
+
4
−
2
View file @
e6cacb46
...
@@ -8,7 +8,7 @@ import test_tools as tt
...
@@ -8,7 +8,7 @@ import test_tools as tt
from
clive_local_tools.cli
import
checkers
from
clive_local_tools.cli
import
checkers
from
clive_local_tools.cli.exceptions
import
CLITestCommandError
from
clive_local_tools.cli.exceptions
import
CLITestCommandError
from
clive_local_tools.data.constants
import
WORKING_ACCOUNT_KEY_ALIAS
from
clive_local_tools.data.constants
import
WORKING_ACCOUNT_KEY_ALIAS
from
clive_local_tools.testnet_block_log
import
WORKING_ACCOUNT_DATA
from
clive_local_tools.testnet_block_log
import
WORKING_ACCOUNT_DATA
,
WORKING_ACCOUNT_NAME
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
clive_local_tools.cli.cli_tester
import
CLITester
from
clive_local_tools.cli.cli_tester
import
CLITester
...
@@ -46,7 +46,9 @@ async def test_withdrawal_cancel_invalid(cli_tester: CLITester) -> None:
...
@@ -46,7 +46,9 @@ async def test_withdrawal_cancel_invalid(cli_tester: CLITester) -> None:
cli_tester
.
process_savings_withdrawal
(
cli_tester
.
process_savings_withdrawal
(
amount
=
AMOUNT_TO_DEPOSIT
,
sign
=
WORKING_ACCOUNT_KEY_ALIAS
,
request_id
=
actual_request_id
amount
=
AMOUNT_TO_DEPOSIT
,
sign
=
WORKING_ACCOUNT_KEY_ALIAS
,
request_id
=
actual_request_id
)
)
expected_error
=
rf
'
unknown key: \[
"
alice
"
,
{
invalid_request_id
}
\] of type
'
expected_error
=
(
rf
"
Savings withdraw for `owner`
{
WORKING_ACCOUNT_NAME
}
and
'
request_id
'
{
invalid_request_id
}
doesn
'
t exist.
"
)
# ACT
# ACT
with
pytest
.
raises
(
CLITestCommandError
,
match
=
expected_error
)
as
withdrawal_cancel_exception_info
:
with
pytest
.
raises
(
CLITestCommandError
,
match
=
expected_error
)
as
withdrawal_cancel_exception_info
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment