mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: add changed_on_delta_humanized field on dashboard schema (#15542)
* chore: add changed_on_delta_humanized field on dashboard schema * fix ut
This commit is contained in:
@@ -344,9 +344,10 @@ class TestDashboardApi(SupersetTestCase, ApiOwnersTestCaseMixin, InsertChartMixi
|
||||
}
|
||||
data = json.loads(rv.data.decode("utf-8"))
|
||||
self.assertIn("changed_on", data["result"])
|
||||
self.assertIn("changed_on_delta_humanized", data["result"])
|
||||
for key, value in data["result"].items():
|
||||
# We can't assert timestamp values
|
||||
if key != "changed_on":
|
||||
if key not in ("changed_on", "changed_on_delta_humanized",):
|
||||
self.assertEqual(value, expected_result[key])
|
||||
# rollback changes
|
||||
db.session.delete(dashboard)
|
||||
|
||||
Reference in New Issue
Block a user