mirror of https://gitlab.com/bashrc2/epicyon
Variable name
parent
2fd901d682
commit
ce885947ca
6
tests.py
6
tests.py
|
@ -2626,7 +2626,7 @@ def testFunctions():
|
||||||
for name, properties in functionProperties.items():
|
for name, properties in functionProperties.items():
|
||||||
if name in exclusions:
|
if name in exclusions:
|
||||||
continue
|
continue
|
||||||
isLocalModule = False
|
isLocalFunction = False
|
||||||
if not properties['calledInModule']:
|
if not properties['calledInModule']:
|
||||||
print('function ' + name +
|
print('function ' + name +
|
||||||
' in module ' + properties['module'] +
|
' in module ' + properties['module'] +
|
||||||
|
@ -2637,7 +2637,7 @@ def testFunctions():
|
||||||
modName = properties['calledInModule'][0]
|
modName = properties['calledInModule'][0]
|
||||||
if modName not in excludeLocal and \
|
if modName not in excludeLocal and \
|
||||||
modName == properties['module']:
|
modName == properties['module']:
|
||||||
isLocalModule = True
|
isLocalFunction = True
|
||||||
if not name.startswith('_'):
|
if not name.startswith('_'):
|
||||||
print('Local function ' + name +
|
print('Local function ' + name +
|
||||||
' in ' + modName + '.py does not begin with _')
|
' in ' + modName + '.py does not begin with _')
|
||||||
|
@ -2652,7 +2652,7 @@ def testFunctions():
|
||||||
print(importStr + ' not found in ' + modName + '.py')
|
print(importStr + ' not found in ' + modName + '.py')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
if not isLocalModule:
|
if not isLocalFunction:
|
||||||
if name.startswith('_'):
|
if name.startswith('_'):
|
||||||
excludePublic = [
|
excludePublic = [
|
||||||
'pyjsonld',
|
'pyjsonld',
|
||||||
|
|
Loading…
Reference in New Issue