picogl.examples.test_legacy_glmesh_fix
Test script to verify the LegacyGLMesh fix
This script tests that the LegacyGLMesh constructor properly handles the case where faces is None and doesn’t cause an AttributeError.
Functions
Test LegacyGLMesh with faces (should work) |
|
Test LegacyGLMesh without faces (should raise ValueError, not AttributeError) |
|
Test LegacyGLMesh with empty faces (should raise ValueError) |
|
|
Run all tests |
Module Contents
- picogl.examples.test_legacy_glmesh_fix.test_legacy_glmesh_with_faces()[source]
Test LegacyGLMesh with faces (should work)
- picogl.examples.test_legacy_glmesh_fix.test_legacy_glmesh_without_faces()[source]
Test LegacyGLMesh without faces (should raise ValueError, not AttributeError)