Skip to content

Commit

Permalink
fix flake8 lint checks
Browse files Browse the repository at this point in the history
Signed-off-by: Far <[email protected]>
  • Loading branch information
alexstroke1 authored and Far committed Nov 19, 2024
1 parent be8d19a commit d465e44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ def asset_definition(self, asset: str, domain: str, type_: str):

def _read_and_update_json(self, template_filename, changes=None):
"""
Reads a JSON template, applies multiple updates, and writes the modified data to a temporary JSON file.
Reads a JSON template, applies multiple updates, and writes the modified data to a JSON file.
:param template_filename: The name of the JSON template file.
:type template_filename: str
:param changes: A dictionary of updates where each key is a path to a JSON key, and each value is the new value to set.
:param changes: A dictionary of updates where each key is a path to a JSON key
:type changes: dict
:return: The path to the temporary JSON file.
:rtype: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def test_grant_not_permitted_permission(
)

with allure.step(
f"THEN get an error Operation is not permitted: This operation is only allowed inside the genesis block"
"THEN get an error Operation is not permitted:"
"This operation is only allowed inside the genesis block"
):
assert iroha_cli.should(have.error(Stderr.NOT_PERMITTED.value))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_revoke_not_granted_permission(
destination=GIVEN_registered_account, permission="CanSetParameters"
)

with allure.step(f"THEN the system should handle the operation appropriately"):
with allure.step("THEN the system should handle the operation appropriately"):
assert iroha_cli.should(have.transaction_hash())


Expand Down

0 comments on commit d465e44

Please sign in to comment.