Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drummerwolli committed Feb 7, 2025
1 parent 5468d6c commit 081f81f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion superset/commands/database/importers/v1/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def import_database(

# TODO (betodealmeida): move this logic to import_from_dict
config["extra"] = json.dumps(config["extra"])
config["encrypted_extra"] = json.dumps(config.get("encrypted_extra", {}))

# Before it gets removed in import_from_dict
ssh_tunnel_config = config.pop("ssh_tunnel", None)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/databases/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2559,7 +2559,7 @@ def test_import_database_encrypted_extra_provided(self, mock_add_permissions):
form_data = {
"formData": (buf, "database_export.zip"),
"encrypted_extras": json.dumps(
{"databases/imported_database.yaml": dummy_encrypted_extra}
{"databases/imported_database.yaml": json.dumps(dummy_encrypted_extra)}
),
}
rv = self.client.post(uri, data=form_data, content_type="multipart/form-data")
Expand Down

0 comments on commit 081f81f

Please sign in to comment.