Skip to content

Commit f0c2d74

Browse files
authored
Update test_metabase_api.py
1 parent a6951a8 commit f0c2d74

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/test_metabase_api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,19 +215,19 @@ def test_copy_card(self):
215215

216216

217217

218-
def test_copy_dashboard(self):
219-
t = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
218+
# def test_copy_dashboard(self):
219+
# t = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
220220

221-
# shallow copy
222-
dup_dashboard_id_shallow = mb.copy_dashboard(source_dashboard_id=1, destination_collection_id=1, postfix='_dup_shallow_{}'.format(t))
221+
# # shallow copy
222+
# dup_dashboard_id_shallow = mb.copy_dashboard(source_dashboard_id=1, destination_collection_id=1, postfix='_dup_shallow_{}'.format(t))
223223

224-
# deep copy
225-
dup_dashboard_id_deep = mb.copy_dashboard(source_dashboard_id=1, destination_collection_id=1, postfix='_dup_deep_{}'.format(t), deepcopy=True)
226-
new_collection_id = mb.get_item_id('collection', "test_dashboard_dup_deep_{}'s cards".format(t))
224+
# # deep copy
225+
# dup_dashboard_id_deep = mb.copy_dashboard(source_dashboard_id=1, destination_collection_id=1, postfix='_dup_deep_{}'.format(t), deepcopy=True)
226+
# new_collection_id = mb.get_item_id('collection', "test_dashboard_dup_deep_{}'s cards".format(t))
227227

228-
# add to cleanup list
229-
Metabase_API_Test.cleanup_objects['dashboard'].extend([dup_dashboard_id_shallow, dup_dashboard_id_deep])
230-
Metabase_API_Test.cleanup_objects['collection'].append(new_collection_id)
228+
# # add to cleanup list
229+
# Metabase_API_Test.cleanup_objects['dashboard'].extend([dup_dashboard_id_shallow, dup_dashboard_id_deep])
230+
# Metabase_API_Test.cleanup_objects['collection'].append(new_collection_id)
231231

232232

233233

0 commit comments

Comments
 (0)