def get_tests(): input_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "functional") suite = [] for dirpath, _, filenames in os.walk(input_dir): if dirpath.endswith("__pycache__"): continue for filename in filenames: if filename != "__init__.py" and filename.endswith(".py"): suite.append(testutils.FunctionalTestFile(dirpath, filename)) return suite
def get_tests(): input_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "functional") suite = [] for dirpath, _, filenames in os.walk(input_dir): if dirpath.endswith("__pycache__"): continue for filename in filenames: if filename != "__init__.py" and filename.endswith(".py"): # isort 5 has slightly different rules as isort 4. Testing # both would be hard: test with isort 5 only. if filename == "wrong_import_order.py" and not HAS_ISORT_5: continue suite.append(testutils.FunctionalTestFile(dirpath, filename)) return suite