This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import fnmatch | |
import sys | |
import subprocess | |
directory = sys.argv[1] | |
for root, dirs, names in os.walk(sys.argv[1]): | |
for name in names: | |
if fnmatch.fnmatch(name, 'pytest_*.py') and os.path.basename(root) == '_tests': |