當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。