From 1faa3397a6ae1c9d82d8f4ba90134148bc022e61 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Mon, 30 Mar 2020 11:37:02 +0200 Subject: Fix the remaining hacking issues Fixes W504 and E117, resulting in some indentation changes. Also fixes code that exceeds the complexity requirement, that is bumped to 20 (mostly to avoid refactoring the agent heartbeat call, resulting in conflicts for the deploy steps work). Change-Id: I8e49f2c039b0ddfca9138f8e148708b7e8b5df7e --- ironic/tests/unit/db/test_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ironic/tests/unit/db/test_api.py') diff --git a/ironic/tests/unit/db/test_api.py b/ironic/tests/unit/db/test_api.py index 1d053a7d8..ed640e9cd 100644 --- a/ironic/tests/unit/db/test_api.py +++ b/ironic/tests/unit/db/test_api.py @@ -195,10 +195,10 @@ class UpdateToLatestVersionsTestCase(base.DbTestCase): self.dbapi.update_to_latest_versions(self.context, 1)) node = self.dbapi.get_node_by_uuid(orig_node.uuid) chassis = self.dbapi.get_chassis_by_uuid(orig_chassis.uuid) - self.assertTrue(node.version == self.node_old_ver or - chassis.version == self.chassis_old_ver) - self.assertTrue(node.version == self.node_ver or - chassis.version == self.chassis_ver) + self.assertTrue(node.version == self.node_old_ver + or chassis.version == self.chassis_old_ver) + self.assertTrue(node.version == self.node_ver + or chassis.version == self.chassis_ver) def _create_nodes(self, num_nodes): version = self.node_old_ver -- cgit v1.2.1