本文整理汇总了Python中mypy.test.data.parse_test_cases函数的典型用法代码示例。如果您正苦于以下问题:Python parse_test_cases函数的具体用法?Python parse_test_cases怎么用?Python parse_test_cases使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parse_test_cases函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
开发者ID:alexandrul,项目名称:mypy,代码行数:10,代码来源:testpythoneval.py
示例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
开发者ID:JamesTFarrington,项目名称:mypy,代码行数:7,代码来源:testsemanal.py
示例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
开发者ID:JamesGuthrie,项目名称:mypy,代码行数:7,代码来源:testparse.py
示例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
开发者ID:ecprice,项目名称:mypy,代码行数:7,代码来源:testtransform.py
示例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
开发者ID:alexandrul,项目名称:mypy,代码行数:7,代码来源:testparse.py
示例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
开发者ID:alexandrul,项目名称:mypy,代码行数:8,代码来源:testtransform.py
示例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
开发者ID:AXGKl,项目名称:Transcrypt,代码行数:9,代码来源:testsemanal.py
示例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
开发者ID:willywu,项目名称:mypy,代码行数:9,代码来源:testcmdline.py
示例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
开发者ID:FlorianLudwig,项目名称:mypy,代码行数:10,代码来源:testdyncheck.py
示例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
开发者ID:fladi,项目名称:mypy,代码行数:6,代码来源:testcheck.py
示例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
开发者ID:bogdan-kulynych,项目名称:mypy,代码行数:5,代码来源:testpythoneval.py
示例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
开发者ID:FlorianLudwig,项目名称:mypy,代码行数:6,代码来源:testcgen.py
示例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
开发者ID:mason-bially,项目名称:mypy,代码行数:6,代码来源:testsemanal.py
示例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
开发者ID:alexandrul,项目名称:mypy,代码行数:5,代码来源:teststubgen.py
示例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
开发者ID:edreamleo,项目名称:mypy,代码行数:6,代码来源:testcheck.py
示例16: cases
def cases(self):
c = []
for f in output_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_output, test_temp_dir, True)
return c
开发者ID:FlorianLudwig,项目名称:mypy,代码行数:6,代码来源:testoutput.py
示例17: cases
def cases(self):
c = []
for path in self.test_data_files:
c += parse_test_cases(os.path.join(config.test_data_prefix, path), test_stubgen)
return c
开发者ID:rockneurotiko,项目名称:mypy,代码行数:5,代码来源:teststubgen.py
示例18: cases
def cases(self):
c = []
for f in self.files:
c += parse_test_cases(os.path.join(config.test_data_prefix, f),
self.run_test, config.test_temp_dir)
return c
开发者ID:JamesGuthrie,项目名称:mypy,代码行数:6,代码来源:testtypegen.py
示例19: cases
def cases(self):
c = []
for f in self.transform_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_transform, test_temp_dir)
return c
开发者ID:FlorianLudwig,项目名称:mypy,代码行数:6,代码来源:testtransform.py
注:本文中的mypy.test.data.parse_test_cases函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论