Conditions | 1 |
Total Lines | 12 |
Lines | 10 |
Ratio | 83.33 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
19 | def __init__(self): |
||
20 | """ |
||
21 | View Code Duplication | Object constructor. |
|
22 | """ |
||
23 | credentials = Credentials.get() |
||
24 | |||
25 | DataLayer.config['host'] = credentials.get_host() |
||
26 | DataLayer.config['user'] = credentials.get_user() |
||
27 | DataLayer.config['password'] = credentials.get_password() |
||
28 | DataLayer.config['database'] = credentials.get_database() |
||
29 | DataLayer.config['port'] = credentials.get_port() |
||
30 | DataLayer.config['autocommit'] = False |
||
31 | |||
55 |