This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/tests/python/view_layer/test_scene_delete.py
2018-01-04 11:28:46 +11:00

35 lines
934 B
Python

# ############################################################
# Importing - Same For All Render Layer Tests
# ############################################################
import unittest
import os
import sys
from view_layer_common import *
# ############################################################
# Testing
# ############################################################
class UnitTesting(ViewLayerTesting):
def test_scene_delete(self):
"""
See if a scene can be properly deleted
"""
import bpy
scene = bpy.context.scene
bpy.data.scenes.new('New')
bpy.data.scenes.remove(scene)
# ############################################################
# Main - Same For All Render Layer Tests
# ############################################################
if __name__ == '__main__':
UnitTesting._extra_arguments = setup_extra_arguments(__file__)
unittest.main()