From b4f73f4dce17f9eb865b1c7cb605ff6fdb64a975 Mon Sep 17 00:00:00 2001 From: Vitor Avila Date: Tue, 16 Apr 2024 10:32:46 -0300 Subject: [PATCH] Fixing CI issues --- tests/cli/superset/sync/native/command_test.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/cli/superset/sync/native/command_test.py b/tests/cli/superset/sync/native/command_test.py index c26e6167..6596b985 100644 --- a/tests/cli/superset/sync/native/command_test.py +++ b/tests/cli/superset/sync/native/command_test.py @@ -1,7 +1,7 @@ """ Tests for the native import command. """ -# pylint: disable=redefined-outer-name, invalid-name +# pylint: disable=redefined-outer-name, invalid-name, too-many-lines import json from pathlib import Path @@ -391,9 +391,7 @@ def test_native_password_prompt(mocker: MockerFixture, fs: FakeFilesystem) -> No prompt_for_passwords.reset_mock() client.get_databases.return_value = [ - { - "uuid": "uuid1" - }, + {"uuid": "uuid1"}, ] result = runner.invoke( superset_cli, @@ -554,11 +552,9 @@ def test_native_legacy_instance(mocker: MockerFixture, fs: FakeFilesystem) -> No client.get_databases.return_value = [ { "connection_name": "Test", - } + }, ] - client.get_uuids.return_value = { - 1: "uuid1" - } + client.get_uuids.return_value = {1: "uuid1"} mocker.patch("preset_cli.cli.superset.sync.native.command.import_resources") mocker.patch("preset_cli.cli.superset.main.UsernamePasswordAuth") prompt_for_passwords = mocker.patch(