Skip to content

Commit

Permalink
Fixing CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor-Avila committed Apr 16, 2024
1 parent 8c45296 commit b4f73f4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/cli/superset/sync/native/command_test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b4f73f4

Please sign in to comment.