From d465e44ff2f5bacb8163ee7831c37408cc1fdca5 Mon Sep 17 00:00:00 2001 From: alexstroke1 Date: Mon, 18 Nov 2024 10:27:24 +0100 Subject: [PATCH] fix flake8 lint checks Signed-off-by: Far --- pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py | 4 ++-- .../test/permissions/test_grant_permissions.py | 3 ++- .../test/permissions/test_revoke_permissions.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py b/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py index 639d3c10fa..a938328e06 100644 --- a/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py +++ b/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py @@ -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 diff --git a/pytests/iroha_cli_tests/test/permissions/test_grant_permissions.py b/pytests/iroha_cli_tests/test/permissions/test_grant_permissions.py index e0aad1c27e..93e8ecf15e 100644 --- a/pytests/iroha_cli_tests/test/permissions/test_grant_permissions.py +++ b/pytests/iroha_cli_tests/test/permissions/test_grant_permissions.py @@ -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)) diff --git a/pytests/iroha_cli_tests/test/permissions/test_revoke_permissions.py b/pytests/iroha_cli_tests/test/permissions/test_revoke_permissions.py index 615b6fc6ee..ce13d29a09 100644 --- a/pytests/iroha_cli_tests/test/permissions/test_revoke_permissions.py +++ b/pytests/iroha_cli_tests/test/permissions/test_revoke_permissions.py @@ -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())