diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-26 07:42:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-26 07:42:52 +0300 |
commit | bae9553848fb9e81431ce3b0bbc1f5b23da0dd16 (patch) | |
tree | f6bcd0d10726e2f1f74ec92de5d7ce5828bd6d1c | |
parent | eca52402bcc7d8f57d27a79c3da9d2e241d32ed1 (diff) |
Test: update bl_run_operators blacklist, add volume object
-rw-r--r-- | tests/python/bl_run_operators.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/python/bl_run_operators.py b/tests/python/bl_run_operators.py index 5954f7d9381..b8b534a0a11 100644 --- a/tests/python/bl_run_operators.py +++ b/tests/python/bl_run_operators.py @@ -60,6 +60,7 @@ op_blacklist = ( "*.*_import", "ed.undo", "ed.undo_push", + "preferences.studiolight_new", "script.autoexec_warn_clear", "screen.delete", # already used for random screens "wm.blenderplayer_start", @@ -90,6 +91,21 @@ op_blacklist = ( "wm.keymap_restore", # another annoying one "wm.addon_*", # harmless, but dont change state "console.*", # just annoying - but harmless + "wm.url_open_preset", # Annoying but harmless (opens web pages). + + # FIXME: + # Crashes with non-trivial fixes. + # + + # Expects undo stack. + "object.voxel_remesh", + "mesh.paint_mask_slice", + "paint.mask_flood_fill", + "sculpt.dirty_mask", + # TODO: use empty temp dir to avoid behavior depending on local setup. + "view3d.pastebuffer", + # Needs active window. + "scene.new", ) @@ -386,6 +402,10 @@ def ctx_object_pose(): bpy.ops.pose.select_all(action='SELECT') +def ctx_object_volume(): + bpy.ops.object.add(type='VOLUME') + + def ctx_object_paint_weight(): bpy.ops.object.mode_set(mode='WEIGHT_PAINT') @@ -474,6 +494,7 @@ def main(): run_ops(operators_test, setup_func=ctx_editmode_mball) run_ops(operators_test, setup_func=ctx_editmode_text) run_ops(operators_test, setup_func=ctx_editmode_lattice) + run_ops(operators_test, setup_func=ctx_object_volume) if not operators_test: print("All setup functions run fine!") |