chore: Fixtures using new sync api
diff --git a/erpnext/buying/dashboard_fixtures.py b/erpnext/buying/dashboard_fixtures.py
new file mode 100644
index 0000000..199765b
--- /dev/null
+++ b/erpnext/buying/dashboard_fixtures.py
@@ -0,0 +1,28 @@
+# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
+import frappe
+import json
+
+
+def get_data():
+ return frappe._dict({
+ "dashboards": get_dashboards(),
+ "charts": get_charts(),
+ "number_cards": get_number_cards(),
+ })
+
+def get_dashboards():
+ return [{
+ "name": "<name>",
+ "dashboard_name": "<name>",
+ "charts": [
+ { "chart": <chart-name> }
+ ]
+ }]
+
+def get_charts():
+ return [ { ... } ]
+
+def get_number_cards():
+ return [ { ... } ]
\ No newline at end of file