Skip to content

Instantly share code, notes, and snippets.

@peterjpxie
Created April 10, 2022 08:41
Show Gist options
  • Save peterjpxie/4b4fbd618fc76eba3276bcbc44170793 to your computer and use it in GitHub Desktop.
Save peterjpxie/4b4fbd618fc76eba3276bcbc44170793 to your computer and use it in GitHub Desktop.
parametrize_setup.py
"""get input test case lists for parametrized tests"""
import os
from os import path
# root_path is parent folder of Scripts folder
root_path = path.dirname(path.dirname(path.realpath(__file__)))
test_case_list = []
input_root = path.join(root_path, "inputs")
for tc in os.listdir(input_root):
if tc.startswith("test_case"):
test_case_list.append(tc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment