示例#1
0
def test_register_datatxt():
  cache = os.path.join(tempfile.gettempdir(), str(random.randint(1, 100000)))
  pins.board_register('datatxt', name = board, url = url, cache = cache )

  assert board in pins.board_list()
示例#2
0
def test_callbacks():
    assert_array_equals(pins.board_list(), ["local", "packages", "memory"])
示例#3
0
def test_deregister_datatxt():
  pins.board_deregister(board)

  assert board not in pins.board_list()
示例#4
0
 def test_register_board(self):
   initialize_board(self.board, False)
   assert self.board in pins.board_list()
示例#5
0
def test_board_list_default():
    assert_array_equals(pins.board_list(), ["local", "packages"])
示例#6
0
 def test_register_board_version(self):
   initialize_board(self.board, True)
   assert self.board in pins.board_list()
示例#7
0
def test_board_register_temp():
    board = pins.board_register("local", name="temp", cache="temp-path")
    assert board == "temp"
    assert_array_equals(pins.board_list(), ["local", "temp"])
示例#8
0
def test_board_list_default():
    assert_array_equals(pins.board_list(), ["local", "memory"])
示例#9
0
def test_board_register_temp():
    board = pins.board_register("local", name="temp", cache="temp")
    assert board == "temp"
    assert board in pins.board_list()
示例#10
0
def test_board_is_registered(board):
    if (board == "s3"):
        return  # NYI

    assert board in pins.board_list()