当前位置: 首页>>代码示例>>Python>>正文


Python project.Project类代码示例

本文整理汇总了Python中chiptools.core.project.Project的典型用法代码示例。如果您正苦于以下问题:Python Project类的具体用法?Python Project怎么用?Python Project使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Project类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testReporter

 def testReporter(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     # Check the synthesis reporter
     self.assertTrue(
         callable(project.get_reporter())
     )
开发者ID:hoangt,项目名称:chiptools,代码行数:7,代码来源:testProjectFunctionality.py

示例2: test_reporter

 def test_reporter(self):
     project = Project()
     project.load_project(self.project_path)
     # Check the synthesis reporter
     self.assertTrue(
         callable(project.get_reporter())
     )
开发者ID:pabennett,项目名称:chiptools,代码行数:7,代码来源:test_project.py

示例3: testSynthesisDirectory

 def testSynthesisDirectory(self):
     project = Project()
     project.load_project(self.project_path)
     abs_path = os.path.join(
         os.path.abspath(self.root),
         self.synthesis_directory
     )
     self.assertEqual(project.get_synthesis_directory(), abs_path)
开发者ID:startupit69,项目名称:chiptools,代码行数:8,代码来源:testProjectFunctionality.py

示例4: testSynthesisToolName

 def testSynthesisToolName(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     # Check synthesis tool name
     self.assertEqual(
         self.synthesis_tool_name,
         project.get_synthesis_tool_name()
     )
开发者ID:hoangt,项目名称:chiptools,代码行数:8,代码来源:testProjectFunctionality.py

示例5: testProjectPart

 def testProjectPart(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     # Check project part
     self.assertEqual(
         self.project_part,
         project.get_fpga_part()
     )
开发者ID:hoangt,项目名称:chiptools,代码行数:8,代码来源:testProjectFunctionality.py

示例6: testSimulationToolName

 def testSimulationToolName(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     # Check simulation tool name
     self.assertEqual(
         self.simulation_tool_name,
         project.get_simulation_tool_name()
     )
开发者ID:hoangt,项目名称:chiptools,代码行数:8,代码来源:testProjectFunctionality.py

示例7: testProjectConstraints

 def testProjectConstraints(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     # Check the project constraints
     self.assertEqual(
         self.project_constraints,
         [os.path.basename(c.path) for c in project.get_constraints()],
     )
开发者ID:hoangt,项目名称:chiptools,代码行数:8,代码来源:testProjectFunctionality.py

示例8: test_project_part

 def test_project_part(self):
     project = Project()
     project.load_project(self.project_path)
     # Check project part
     self.assertEqual(
         self.project_part,
         project.get_fpga_part()
     )
开发者ID:pabennett,项目名称:chiptools,代码行数:8,代码来源:test_project.py

示例9: testGenerics

 def testGenerics(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     # Check the synthesis generics
     self.assertDictEqual(
         self.project_generics,
         project.get_generics(),
     )
开发者ID:hoangt,项目名称:chiptools,代码行数:8,代码来源:testProjectFunctionality.py

示例10: test_generics

 def test_generics(self):
     project = Project()
     project.load_project(self.project_path)
     # Check the synthesis generics
     self.assertDictEqual(
         self.project_generics,
         project.get_generics(),
     )
开发者ID:pabennett,项目名称:chiptools,代码行数:8,代码来源:test_project.py

示例11: test_synthesis_tool_name

 def test_synthesis_tool_name(self):
     project = Project()
     project.load_project(self.project_path)
     # Check synthesis tool name
     self.assertEqual(
         self.synthesis_tool_name,
         project.get_synthesis_tool_name()
     )
开发者ID:pabennett,项目名称:chiptools,代码行数:8,代码来源:test_project.py

示例12: test_simulation_Tool_name

 def test_simulation_Tool_name(self):
     project = Project()
     project.load_project(self.project_path)
     # Check simulation tool name
     self.assertEqual(
         self.simulation_tool_name,
         project.get_simulation_tool_name()
     )
开发者ID:pabennett,项目名称:chiptools,代码行数:8,代码来源:test_project.py

示例13: testSimulationDirectory

 def testSimulationDirectory(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     abs_path = os.path.join(
         os.path.abspath(self.root),
         self.simulation_directory
     )
     self.assertEqual(project.get_simulation_directory(), abs_path)
开发者ID:hoangt,项目名称:chiptools,代码行数:8,代码来源:testProjectFunctionality.py

示例14: testPreprocessor

 def testPreprocessor(self):
     project = Project()
     XmlProjectParser.load_project(self.project_path, project)
     files = project.get_files()
     preprocessors = list(
         filter(
             lambda x: os.path.exists(x.preprocessor), files
         )
     )
     self.assertTrue(len(preprocessors) > 0)
     project.run_preprocessors()
开发者ID:hoangt,项目名称:chiptools,代码行数:11,代码来源:testProjectFunctionality.py

示例15: test_preprocessor

 def test_preprocessor(self):
     project = Project()
     project.load_project(self.project_path)
     files = project.get_files()
     preprocessors = list(
         filter(
             lambda x: os.path.exists(x.preprocessor), files
         )
     )
     self.assertTrue(len(preprocessors) > 0)
     self.run_and_check_preprocessors(project)
开发者ID:pabennett,项目名称:chiptools,代码行数:11,代码来源:test_project.py


注:本文中的chiptools.core.project.Project类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。