More verbose module checks

merge-requests/8/head
Bob Mottram 2020-12-22 13:04:49 +00:00
parent a7b094f84f
commit 59357c0c4f
1 changed files with 2 additions and 0 deletions

View File

@ -2571,6 +2571,7 @@ def testFunctions():
# which modules is each function used within?
for modName in modules:
print('Module: ' + modName + '')
with open(modName + '.py', "r") as f:
lines = f.readlines()
for name, properties in functionProperties.items():
@ -2622,6 +2623,7 @@ def testFunctions():
' in module ' + properties['module'] +
' is not called anywhere')
assert properties['calledInModule']
print('Function: ' + name + '')
# print(str(function))
# print(str(functionProperties))