fix(ci): tests
This commit is contained in:
parent
49714e916f
commit
c918601b0a
3 changed files with 5 additions and 4 deletions
|
|
@ -28,6 +28,7 @@ class WorkspaceSidebar(Document):
|
|||
# end: auto-generated types
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if not frappe.flags.in_migrate:
|
||||
self.user = frappe.get_user()
|
||||
self.can_read = self.get_cached("user_perm_can_read", self.get_can_read_items)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ Utilities for using modules
|
|||
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
from textwrap import dedent, indent
|
||||
from typing import TYPE_CHECKING, Union
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ def get_context(context):
|
|||
# this needs commit
|
||||
csrf_token = frappe.sessions.get_csrf_token()
|
||||
|
||||
frappe.db.commit()
|
||||
frappe.db.commit() # nosemgrep
|
||||
|
||||
hooks = frappe.get_hooks()
|
||||
app_include_js = hooks.get("app_include_js", []) + frappe.conf.get("app_include_js", [])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue