本文整理汇总了Python中mypy.test.data.parse_test_cases函数的典型用法代码示例。如果您正苦于以下问题:Python parse_test_cases函数的具体用法?Python parse_test_cases怎么用?Python parse_test_cases使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parse_test_cases函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: cases
def cases(self) -> List[DataDrivenTestCase]:
c = [] # type: List[DataDrivenTestCase]
for f in python_eval_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_python_evaluation, test_temp_dir, True)
if sys.version_info.major == 3 and sys.version_info.minor >= 4:
for f in python_34_eval_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_python_evaluation, test_temp_dir, True)
return c
示例2: cases
def cases(self):
"""Test case descriptions"""
c = []
for f in semanal_typeinfo_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
self.run_test, test_temp_dir)
return c
示例3: cases
def cases(self):
# The test case descriptions are stored in data files.
c = []
for f in self.parse_files:
c += parse_test_cases(
os.path.join(config.test_data_prefix, f), test_parser)
return c
示例4: cases
def cases(self):
c = []
for f in self.transform_files:
c += parse_test_cases(
os.path.join(test_data_prefix, f), test_transform, base_path=test_temp_dir, native_sep=True
)
return c
示例5: cases
def cases(self) -> List[DataDrivenTestCase]:
# The test case descriptions are stored in data files.
c = [] # type: List[DataDrivenTestCase]
for f in self.parse_files:
c += parse_test_cases(
os.path.join(config.test_data_prefix, f), test_parser)
return c
示例6: cases
def cases(self) -> List[DataDrivenTestCase]:
c = [] # type: List[DataDrivenTestCase]
for f in self.transform_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_transform,
base_path=test_temp_dir,
native_sep=True)
return c
示例7: cases
def cases(self):
c = []
for f in semanal_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_semanal,
base_path=test_temp_dir,
optional_out=True,
native_sep=True)
return c
示例8: cases
def cases(self) -> List[DataDrivenTestCase]:
c = [] # type: List[DataDrivenTestCase]
for f in cmdline_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_python_evaluation,
base_path=test_temp_dir,
optional_out=True,
native_sep=True)
return c
示例9: cases
def cases(self):
c = []
for f in self.test_case_files:
c += parse_test_cases(
os.path.join(test_data_prefix, f),
builtins_wrapper(test_transform,
os.path.join(test_data_prefix,
TRANSFORM_BUILTINS)),
test_temp_dir, True)
return c
示例10: cases
def cases(self):
c = []
for f in files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
self.run_test, test_temp_dir, True)
return c
示例11: cases
def cases(self):
c = []
for f in python_eval_files:
c += parse_test_cases(os.path.join(test_data_prefix, f), test_python_evaluation, test_temp_dir, True)
return c
示例12: cases
def cases(self):
c = []
for f in self.files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_cgen_compile, test_temp_dir, True)
return c
示例13: cases
def cases(self):
c = []
for f in semanal_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_semanal, test_temp_dir)
return c
示例14: cases
def cases(self) -> List[DataDrivenTestCase]:
c = [] # type: List[DataDrivenTestCase]
for path in self.test_data_files:
c += parse_test_cases(os.path.join(config.test_data_prefix, path), test_stubgen)
return c
示例15: cases
def cases(self) -> List[DataDrivenTestCase]:
c = [] # type: List[DataDrivenTestCase]
for f in files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
self.run_test, test_temp_dir, True)
return c