Esempio n. 1
0
def main_ci():
    blenddata.register()

    os.makedirs("logs/tests", exist_ok=True)
    with open("logs/tests/blender_data.xml", "wb") as output:
        suite = unittest.defaultTestLoader.discover(this_folder)
        runner = xmlrunner.XMLTestRunner(verbosity=2, output=output)
        result = runner.run(suite)
        if not result.wasSuccessful():
            # exitcode != 0 for gitlab test runner
            raise AssertionError("Tests failed")

    blenddata.unregister()
Esempio n. 2
0
def unregister():
    for class_ in classes:
        bpy.utils.unregister_class(class_)
    blenddata.unregister()
Esempio n. 3
0
def unregister():
    if use_debug_addon:
        for class_ in classes:
            bpy.utils.unregister_class(class_)
    blenddata.unregister()