Created
April 10, 2022 08:41
-
-
Save peterjpxie/4b4fbd618fc76eba3276bcbc44170793 to your computer and use it in GitHub Desktop.
parametrize_setup.py
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
"""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