2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-24 11:05:29 +00:00
frappe_docker/tests/_check_website_theme.py
Revant Nandgaonkar 79760daf9b
fix: link frappe node_modules to make Website Theme work (#702)
* fix: link frappe node_modules to make Website Theme work

* Add website theme test

* Fix failing test

Co-authored-by: Lev Vereshchagin <mail@vrslev.com>
2022-03-16 13:39:16 +03:00

18 lines
282 B
Python

import frappe
def check_website_theme():
doc = frappe.new_doc("Website Theme")
doc.theme = "test theme"
doc.insert()
def main() -> int:
frappe.connect(site="tests")
check_website_theme()
return 0
if __name__ == "__main__":
raise SystemExit(main())