Пример #1
0
 def test_king_board_size_2(self, mock_update_db):
     assert 0 == run_task(2, 2, 'king', 'a', 'b')
Пример #2
0
 def test_king_board_size_3(self, mock_update_db):
     assert 8 == run_task(3, 3, 'king', 'a', 'b')
Пример #3
0
 def test_knight_board_size_3(self, mock_update_db):
     assert 36 == run_task(3, 3, 'knight', 'a', 'b')
Пример #4
0
 def test_king_board_size_1(self, mock_update_db):
     assert 1 == run_task(1, 1, 'king', 'a', 'b')
Пример #5
0
 def test_knight_board_size_1(self, mock_update_db):
     assert 1 == run_task(1, 1, 'knight', 'a', 'b')
Пример #6
0
 def test_knight_board_size_2(self, mock_update_db):
     assert 6 == run_task(2, 2, 'knight', 'a', 'b')
Пример #7
0
 def test_bishop_board_size_2(self, mock_update_db):
     assert 4 == run_task(2, 2, 'bishop', 'a', 'b')
Пример #8
0
 def test_bishop_board_size_3(self, mock_update_db):
     assert 26 == run_task(3, 3, 'bishop', 'a', 'b')
Пример #9
0
 def test_bishop_board_size_1(self, mock_update_db):
     assert 1 == run_task(1, 1, 'bishop', 'a', 'b')
Пример #10
0
 def test_rook_board_size_3(self, mock_update_db):
     assert 6 == run_task(3, 3, 'rook', 'a', 'b')
Пример #11
0
 def test_rook_board_size_2(self, mock_update_db):
     assert 2 == run_task(2, 2, 'rook', 'a', 'b')
Пример #12
0
 def test_rook_board_size_1(self, mock_update_db):
     assert 1 == run_task(1, 1, 'rook', 'a', 'b')
Пример #13
0
 def test_queen_board_size_1(self, mock_update_db):
     assert 92 == run_task(8, 8, 'queen', 'a', 'b')