Skip to content

Commit

Permalink
Update tests.py
Browse files Browse the repository at this point in the history
修改测试方法
  • Loading branch information
feiazifeiazi authored Apr 10, 2024
1 parent 9bafcd4 commit d760a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/engines/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def test_get_all_databases_exception_handling(self, mock_config_get, mock_info):
new_engine = RedisEngine(instance=self.ins)
result = new_engine.get_all_databases()
# 验证返回的数据库列表是否符合预期.
expected_dbs = [str(x) for x in range(int(18))]
expected_dbs = [str(x) for x in range(int(19))]
self.assertListEqual(result.rows, expected_dbs)
# 验证config_get方法被调用
mock_config_get.assert_called_once_with("databases")
Expand Down

0 comments on commit d760a77

Please sign in to comment.