Skip to content

Commit

Permalink
Excluding tests or legacy MFn Types
Browse files Browse the repository at this point in the history
  • Loading branch information
scottenglert committed Apr 14, 2022
1 parent 1ebf3b7 commit b5e39a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_mfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
def test_fn_types():
"""Check that the Fn.Type enum is identical to the MFn.Type enum"""

# these types are only for backward compatibility and do not exist in Maya's Python 2.0 API
legacyTypes = {'kAttribute2Long', 'kAttribute3Long', 'kData2Long', 'kData3Long'}

for k, v in maya.api.OpenMaya.MFn.__dict__.items():
if not k.startswith('k'):
if not k.startswith('k') or k in legacyTypes:
continue

assert hasattr(cmdc.Fn.Type, k), (
Expand Down

0 comments on commit b5e39a2

Please sign in to comment.