Read time: 1.3 minutes (133 words)

Unit Tests

tests.test_sanity.test_version()[source]

sanity check

tests.test_version.test_version()[source]

Return current application version string

tests.test_cli.test_Generator_cmd()[source]

Test Generator

tests.test_cli.test_cli_app_version()[source]

test cli version option

tests.test_cli.test_cli_help_option()[source]

test cli help option

tests.test_cli.test_cli_test_model_status(testenv)[source]

Test cli summary report

tests.test_OpenSCAD.test_OSC_STL_bad_file()[source]

Test error return on bad file name

tests.test_OpenSCAD.test_OSC_STL_bad_stl_name()[source]

Test error return on non-scad file name

tests.test_OpenSCAD.test_OSC_STL_generator()[source]

Test generation of STL file from specified SCAD file

tests.test_OpenSCAD.test_OSC_version()[source]

Test app returns installed OpenSCAD version

tests.test_TreeWalker.test_bad_model_path()[source]

Check bad model path returns None

tests.test_TreeWalker.test_delete_files()[source]

Check that clean removes selected files

tests.test_TreeWalker.test_dir_has_no_scad_file()[source]

Test directory with no scad files returns None

tests.test_TreeWalker.test_leaf_file_list()[source]

Test that leaf list is correct

tests.test_TreeWalker.test_model_file_list()[source]

Check file list is correct

tests.test_TreeWalker.test_non_lesf_file_list()[source]

Test that non-leaf file list is correct

tests.test_TreeWalker.test_process_files()[source]

Check all selected files get processed

tests.test_TreeWalker.test_process_leaf_files()[source]

Check all selected leaf files get processed

tests.test_TreeWalker.test_treewalker_callback()[source]

Check callback is registered

tests.test_TreeWalker.test_treewalker_extension()[source]

Test extension is registered

tests.test_TreeWalker.test_valid_model_path()[source]

Test good model path returns path

tests.test_Generator.test_generate_mass_properties()[source]

Check creates json file with mass properties

tests.test_Generator.test_generate_stl()[source]

Check generator builds all STL files

tests.test_Generator.test_generates_excel()[source]

Check generation of excel file