Skip to content

Instantly share code, notes, and snippets.

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':