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.
Test Failed
Push — master ( e3a209...bb2a36 )
by Juan Jose
01:39
created

Route4MeRoutesTests.test_get_routes()   A

Complexity

Conditions 2

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
dl 0
loc 12
rs 9.4285
c 1
b 0
f 0
1
import unittest
2
3
from tests.base import  Route4MeAPITestSuite
4
5
6
class Route4MeRoutesTests(Route4MeAPITestSuite):
7
    """
8
    Route4Me Route Tests
9
    """
10
11
    def test_get_routes(self):
12
        route = self.route4me.route
13
        response = route.get_routes(limit=10, Offset=5)
14
        if hasattr(response, 'errors'):
15
            print ('. '.join(response.get('errors')))
16
        else:
17
            self.assertTrue(len(response) > 0)
18
            route_id = response[0].get('route_id', False)
19
            self.assertTrue(route_id)
20
            response = route.get_route(route_id=route_id)
21
            self.assertEqual(response.get('route_id'),
22
                             route_id)
23
24
25
if __name__ == '__main__':
26
    unittest.main()