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 = 10-12 lines in 2 locations

logger_test.py 1 location

@@ 16-27 (lines=12) @@
13
14
class TestLogger(unittest.TestCase):
15
16
    def setUp(self):
17
        self.db = connectordb.ConnectorDB("test", "test", url=TEST_URL)
18
        self.usr = self.db("logger_test")
19
        if self.usr.exists():
20
            self.usr.delete()
21
        self.usr.create("loggertest@localhost", "mypass")
22
        self.device = self.usr["mydevice"]
23
        self.device.create()
24
        self.apikey = self.device.apikey
25
26
        if os.path.exists("test.db"):
27
            os.remove("test.db")
28
29
    def tearDown(self):
30
        try:

query_test.py 1 location

@@ 13-22 (lines=10) @@
10
11
class TestQuery(unittest.TestCase):
12
13
    def setUp(self):
14
        self.db = connectordb.ConnectorDB("test", "test", url=TEST_URL)
15
        self.usr = self.db("query_test")
16
        if self.usr.exists():
17
            self.usr.delete()
18
        self.usr.create("loggertest@localhost", "mypass")
19
        self.device = self.usr["mydevice"]
20
        self.device.create()
21
        self.apikey = self.device.apikey
22
        self.udb = connectordb.ConnectorDB(self.apikey, url=TEST_URL)
23
24
    def tearDown(self):
25
        self.usr.delete()