1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Review fixes and ruff settings

This commit is contained in:
Alexander Presnyakov
2025-04-18 03:59:40 +00:00
parent 7255340ae5
commit 04015ae414
5 changed files with 30 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import logging
import socket
import unittest
from unittest.mock import patch
from unittest.mock import patch, ANY
from lxml import etree
from cmapi_server import node_manipulation
@@ -97,7 +97,7 @@ class NodeManipTester(BaseNodeManipTestCase):
mock_rebalance_dbroots.assert_not_called()
mock_move_primary_node.assert_not_called()
mock_add_dbroots_of_other_nodes.assert_called_once_with(root, 2)
mock_add_dbroots_of_other_nodes.assert_called_once_with(ANY, 2)
# Test read-only node removal
node_manipulation.remove_node(
@@ -111,7 +111,7 @@ class NodeManipTester(BaseNodeManipTestCase):
mock_rebalance_dbroots.assert_not_called()
mock_move_primary_node.assert_not_called()
mock_remove_dbroots_of_node.assert_called_once_with(root, 2)
mock_remove_dbroots_of_node.assert_called_once_with(ANY, 2)
def test_add_dbroots_nodes_rebalance(self):