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>
This commit is contained in:
committed by
GitHub
parent
51319db0f4
commit
79760daf9b
17
tests/_check_website_theme.py
Normal file
17
tests/_check_website_theme.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user