Пример #1
0
 def test_get_board_names_user_loc(self):
     """get all the board names adding custom locations"""
     loc = os.path.join(os.path.dirname(__file__),
                        os.path.pardir,
                        "fake")
     boards = utils.get_board_names([loc])
     self.assertIn("test_board", boards)
Пример #2
0
 def initialize_configuration_editor(self, configuration_editor):
     self.configuration_editor = configuration_editor
     self.configuration_editor.set_project_name(self.get_project_name())
     self.configuration_editor.populate_board_list(utils.get_board_names())
     self.configuration_editor.set_board(self.model.get_board_name())
     self.configuration_editor.populate_connected_signals(self.model.get_internal_bindings())
     self.configuration_editor.populate_available_signals(self.model.get_available_internal_bind_signals())
     self.configuration_editor.populate_constraints_file_list(self.model.get_constraint_filenames())
Пример #3
0
 def test_get_board_names(self):
     """gets all the board names"""
     boards = utils.get_board_names(debug = False)
     self.assertIn("dionysus", boards)
Пример #4
0
 def test_get_board_names_user_loc(self):
     """get all the board names adding custom locations"""
     loc = os.path.join(os.path.dirname(__file__), os.path.pardir, "fake")
     boards = utils.get_board_names([loc])
     self.assertIn("test_board", boards)
Пример #5
0
 def test_get_board_names(self):
     """gets all the board names"""
     boards = utils.get_board_names(debug=False)
     self.assertIn("dionysus", boards)