mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 20:12:31 +00:00
Stub open command so running tests doesn't keep on launching apps
This commit is contained in:
@@ -3165,6 +3165,7 @@ class EditTextPopup(bpy.types.Operator):
|
|||||||
bpy.ops.bim.disable_editing_text()
|
bpy.ops.bim.disable_editing_text()
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
# TODO: check for possible subtle undo bug here
|
||||||
# can't use invoke() because this operator
|
# can't use invoke() because this operator
|
||||||
# will be run indirectly by hotkey
|
# will be run indirectly by hotkey
|
||||||
# so we use execute() and track whether it's the first run of the operator
|
# so we use execute() and track whether it's the first run of the operator
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ from bonsai.bim.ifc import IfcStore
|
|||||||
|
|
||||||
# Monkey-patch webbrowser opening since we want to test headlessly
|
# Monkey-patch webbrowser opening since we want to test headlessly
|
||||||
webbrowser.open = lambda x: True
|
webbrowser.open = lambda x: True
|
||||||
|
tool.Drawing.open_with_user_command = lambda x, y: True
|
||||||
|
|
||||||
|
|
||||||
variables = {"cwd": os.getcwd(), "ifc": "IfcStore.get_file()"}
|
variables = {"cwd": os.getcwd(), "ifc": "IfcStore.get_file()"}
|
||||||
|
|||||||
Reference in New Issue
Block a user