rusackas commented on code in PR #43666:
URL: https://github.com/apache/superset/pull/43666#discussion_r4031365382
##########
tests/unit_tests/commands/dashboard/update_test.py:
##########
@@ -166,3 +171,85 @@ def
test_process_native_filter_diff_only_touches_reports_on_the_updated_dashboar
# NATIVE_FILTER-2 is the only one dropped from the new metadata.
report_dao.find_by_native_filter_id.assert_called_once_with("NATIVE_FILTER-2")
report_dao.update.assert_called_once_with(own_report, {"active": False})
+
+
+def _mock_dependencies(mocker: MockerFixture, existing_css: str) -> None:
+ model = mocker.MagicMock(id=1, tags=[], css=existing_css)
+ mocker.patch(
+ "superset.commands.dashboard.update.DashboardDAO.find_by_id",
+ return_value=model,
+ )
Review Comment:
Fixed, set `is_managed_externally=False` on the mock.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]