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.

Code Duplication    Length = 17-19 lines in 2 locations

tests/unit_tests/conftest.py 2 locations

@@ 34-52 (lines=19) @@
31
    return conn
32
33
34
@pytest.fixture
35
def connections(loop, player_service, game_service, transport, game):
36
    from server import GameConnection
37
38
    def make_connection(player, connectivity):
39
        lc = LobbyConnection(loop)
40
        lc.protocol = mock.Mock()
41
        conn = GameConnection(loop=loop,
42
                              lobby_connection=lc,
43
                              player_service=player_service,
44
                              games=game_service)
45
        conn.player = player
46
        conn.game = game
47
        conn._transport = transport
48
        conn._connectivity_state.set_result(connectivity)
49
        return conn
50
51
    return mock.Mock(
52
        make_connection=make_connection
53
    )
54
@@ 15-31 (lines=17) @@
12
    )
13
14
15
@pytest.fixture
16
def game_connection(request, game, loop, player_service, players, game_service, transport):
17
    from server import GameConnection, LobbyConnection
18
    conn = GameConnection(loop=loop,
19
                          lobby_connection=mock.create_autospec(LobbyConnection(loop)),
20
                          player_service=player_service,
21
                          games=game_service)
22
    conn._transport = transport
23
    conn.player = players.hosting
24
    conn.game = game
25
    conn.lobby = mock.Mock(spec=LobbyConnection)
26
27
    def fin():
28
        conn.abort()
29
30
    request.addfinalizer(fin)
31
    return conn
32
33
34
@pytest.fixture