Adding list of excluded files to TestUtilities.
import os
+excludedFiles = ['TestUtilities.py', 'pytest_profile.py']
def findSkippedTests():
skippedTest = '@unittest.skip'
@@ -9,7 +10,7 @@ def findSkippedTests():
# expected failures.
for fname in os.listdir('.'):
- if os.path.isfile(fname) and fname[-3:] == ".py" and fname != 'TestUtilities.py':
+ if os.path.isfile(fname) and fname[-3:] == ".py" and fname not in excludedFiles:
with open(fname) as f:
count = False
for line in f:
@@ -27,7 +28,7 @@ def findSkippedTests():
# which ones do not adhere to the proper naming convention.
def listFunctionNames():
for fname in os.listdir('.'):
- if os.path.isfile(fname) and fname[-3:] == ".py" and fname != 'TestUtilities.py':
+ if os.path.isfile(fname) and fname[-3:] == ".py" and fname not in excludedFiles:
with open(fname) as f:
count = False
for line in f:
@@ -44,7 +45,7 @@ def listFunctionNames():
# TODO: improve this to list function names
def findDummyTests():
for fname in os.listdir('.'):
- if os.path.isfile(fname) and fname[-3:] == ".py" and fname != 'TestUtilities.py':
+ if os.path.isfile(fname) and fname[-3:] == ".py" and fname not in excludedFiles:
with open(fname) as f:
count = False
for line in f:
