forked from bartvdbraak/blender
ea55af2163
This crept back in somehow!
35 lines
934 B
Python
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()
|