GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — develop ( 86b96e...4422cd )
by Theo
01:44
created

chess.test.TestChess   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 12
Duplicated Lines 0 %
Metric Value
dl 0
loc 12
rs 10
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A TestChess.test_init() 0 2 2
A TestChess.test_move_pawn_forward_once() 0 2 1
1
"""Chess unit test module."""
2
3
import unittest
4
from chess.chess import Chess
5
6
7
class TestChess(unittest.TestCase):
8
9
    """Chess unit test class."""
10
11
    def setUp(self):
12
        self.chess = Chess()
13
14
    def test_init(self):
0 ignored issues
show
Coding Style introduced by
This method should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
15
        assert isinstance(self.chess.board, dict)
16
17
    def test_move_pawn_forward_once(self):
0 ignored issues
show
Coding Style introduced by
This method should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
18
        pass
19
        # start = (6, 4)
20
        # end = (5, 4)
21
        # assert self.chess.board[start]
22
        # self.chess.move(start, end)
23
        # assert self.chess.board[end]
24