def test_check_signatures(): from fluids.units import check_args_order for name in dir(fluids): obj = getattr(fluids, name) if isinstance(obj, types.FunctionType) and not obj.func_name == '<lambda>': check_args_order(obj)
def test_check_signatures(): from fluids.units import check_args_order for name in dir(ht): obj = getattr(ht, name) if isinstance(obj, types.FunctionType) and obj not in [ ht.get_tube_TEMA, ht.check_tubing_TEMA ]: check_args_order(obj)
def test_check_signatures(): from fluids.units import check_args_order for name in dir(fluids): obj = getattr(fluids, name) if isinstance(obj, types.FunctionType): if hasattr(obj, 'func_name') and obj.func_name == '<lambda>': continue # 2 if hasattr(obj, '__name__') and obj.__name__ == '<lambda>': continue # 3 check_args_order(obj)
def test_check_signatures(): from fluids.units import check_args_order for name in dir(fluids): obj = getattr(fluids, name) if isinstance(obj, types.FunctionType): if hasattr(obj, 'func_name') and obj.func_name == '<lambda>': continue # 2 if hasattr(obj, '__name__') and obj.__name__ == '<lambda>': continue # 3 check_args_order(obj)
def test_check_signatures(): from fluids.units import check_args_order bad_names = set(['__getattr__']) for name in dir(ht): if name in bad_names: continue obj = getattr(ht, name) if isinstance(obj, types.FunctionType) and obj not in [ ht.get_tube_TEMA, ht.check_tubing_TEMA ]: check_args_order(obj)