diff --git a/cli/tests/pcluster/models/test_cluster_resources.py b/cli/tests/pcluster/models/test_cluster_resources.py index 343e8858d4..8cd38bf7c3 100644 --- a/cli/tests/pcluster/models/test_cluster_resources.py +++ b/cli/tests/pcluster/models/test_cluster_resources.py @@ -62,7 +62,7 @@ def test_initialization_success(self, mock_head_node, filters, expected_filters_ logs_filters = ClusterLogsFiltersParser(mock_head_node, filters) for attr in expected_attrs: - assert_that(getattr(logs_filters, attr)).is_equal_to(expected_attrs.get(attr)) + assert_that(getattr(logs_filters, attr)).is_equal_to(expected_attrs.get(attr)) # noqa: B038 assert_that(expected_filters_size).is_equal_to(len(logs_filters.filters_list)) @pytest.mark.parametrize( @@ -149,7 +149,7 @@ def test_initialization_success(self, mock_head_node, params, expected_attrs): ) for attr in expected_attrs: - assert_that(getattr(export_logs_filters, attr)).is_equal_to(expected_attrs.get(attr)) + assert_that(getattr(export_logs_filters, attr)).is_equal_to(expected_attrs.get(attr)) # noqa: B038 @pytest.mark.parametrize( "attrs, event_in_window, expected_error", diff --git a/cli/tests/pcluster/models/test_common.py b/cli/tests/pcluster/models/test_common.py index ee38b5b7b3..901e44ca24 100644 --- a/cli/tests/pcluster/models/test_common.py +++ b/cli/tests/pcluster/models/test_common.py @@ -74,7 +74,7 @@ def test_initialization_success(self, params, expected_attrs): ) for attr in expected_attrs: - assert_that(getattr(export_logs_filters, attr)).is_equal_to(expected_attrs.get(attr)) + assert_that(getattr(export_logs_filters, attr)).is_equal_to(expected_attrs.get(attr)) # noqa: B038 @pytest.mark.parametrize( "attrs, event_in_window, log_stream_prefix, expected_error", diff --git a/tests/integration-tests/tests/performance_tests/plotting/performance_tests_plots.py b/tests/integration-tests/tests/performance_tests/plotting/performance_tests_plots.py index 89eda32e41..3258b1d53e 100644 --- a/tests/integration-tests/tests/performance_tests/plotting/performance_tests_plots.py +++ b/tests/integration-tests/tests/performance_tests/plotting/performance_tests_plots.py @@ -50,7 +50,7 @@ def generate_plots(datadir, outdir, configurations, nodes): # Box Plots box_plots = {} for configuration in configurations: - positions = all_positions[configurations.index(configuration) :: n_configurations] # noqa: E203 + positions = all_positions[configurations.index(configuration) :: n_configurations] # noqa: E203, B038 box_plots[configuration] = ax.boxplot( data[configuration], patch_artist=True, diff --git a/tests/integration-tests/tests/storage/snapshots_factory.py b/tests/integration-tests/tests/storage/snapshots_factory.py index b393f34bb2..9fa3461a67 100644 --- a/tests/integration-tests/tests/storage/snapshots_factory.py +++ b/tests/integration-tests/tests/storage/snapshots_factory.py @@ -157,7 +157,7 @@ def _open_ssh_connection(self): ) ssh_conn.open() tries = 0 - except BaseException: + except BaseException: # noqa: B036 logging.info("SSH connection error - retrying...") tries -= 1 time.sleep(20)