-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3823f1
commit e331f31
Showing
59 changed files
with
75 additions
and
385 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-12.4 KB
tests/snapshots/flex/test_get_public_key_confirm_accepted/00003.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
File renamed without changes
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
File renamed without changes
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import pytest | ||
|
||
from application_client.boilerplate_command_sender import BoilerplateCommandSender, Errors | ||
from ragger.error import ExceptionRAPDU | ||
|
||
|
||
# In this test we check that the TEST_REVIEW1 replies OK if the user accepts | ||
def test_review1_accepted(backend, scenario_navigator): | ||
client = BoilerplateCommandSender(backend) | ||
|
||
with client.test_review1(): | ||
scenario_navigator.review_approve() | ||
|
||
status = client.get_async_response().status | ||
|
||
assert status == 0x9000 | ||
|
||
|
||
# In this test we check that the TEST_REVIEW1 replies an error if the user refuses | ||
def test_review1_refused(backend, scenario_navigator): | ||
client = BoilerplateCommandSender(backend) | ||
|
||
with pytest.raises(ExceptionRAPDU) as e: | ||
with client.test_review1(): | ||
scenario_navigator.review_reject() | ||
|
||
# Assert that we have received a refusal | ||
assert e.value.status == Errors.SW_DENY | ||
assert len(e.value.data) == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import pytest | ||
|
||
from application_client.boilerplate_command_sender import BoilerplateCommandSender, Errors | ||
from ragger.error import ExceptionRAPDU | ||
|
||
|
||
# In this test we check that the TEST_REVIEW2 replies OK if the user accepts | ||
def test_review2_accepted(backend, scenario_navigator): | ||
client = BoilerplateCommandSender(backend) | ||
with client.test_review2(): | ||
scenario_navigator.address_review_approve() | ||
|
||
status = client.get_async_response().status | ||
|
||
assert status == 0x9000 | ||
|
||
|
||
# In this test we check that the TEST_REVIEW2 replies an error if the user refuses | ||
def test_review2_refused(backend, scenario_navigator): | ||
client = BoilerplateCommandSender(backend) | ||
|
||
with pytest.raises(ExceptionRAPDU) as e: | ||
with client.test_review2(): | ||
scenario_navigator.address_review_reject() | ||
|
||
# Assert that we have received a refusal | ||
assert e.value.status == Errors.SW_DENY | ||
assert len(e.value.data) == 0 |
Oops, something went wrong.