3MAH / microgen

Microstructure generation
https://3mah.github.io
GNU General Public License v3.0
65 stars 8 forks source link

Refacto/remove duplicated tpms tests #68

Closed ricardo0115 closed 3 months ago

ricardo0115 commented 3 months ago

Added check in test_tpms.py to avoid testing several times the same surface functions.

This was produced by the instruction : [func[0] for func in getmembers(microgen.surface_functions, isfunction)]

where every function contained in surface_functions was taken into account, even deprecated ones.

An extra "if" condition has been added to take only snake_case named functions and not deprecated camelCase functions.

As result, +50 useless tests are not executed with this PR