projecthamster / hamster-lib

@@ -57,10 +57,10 @@
Loading
57 57
58 58
import datetime
59 59
import os
60 +
from configparser import ConfigParser
60 61
61 62
import appdirs
62 63
import hamster_lib
63 -
from configparser import SafeConfigParser
64 64
from six import text_type
65 65
66 66
@@ -168,7 +168,7 @@
Loading
168 168
        ``DEFAULT_CONFIG_FILENAME``.
169 169
170 170
    Returns:
171 -
        SafeConfigParser: Instance written to file.
171 +
        ConfigParser: Instance written to file.
172 172
    """
173 173
174 174
    path = get_config_path(appdirs, file_name)
@@ -194,7 +194,7 @@
Loading
194 194
            config file that is created if no pre-existing one can be found.
195 195
196 196
    Returns:
197 -
        SafeConfigParser: Config loaded from file, either from the the  pre-existing config
197 +
        ConfigParser: Config loaded from file, either from the the  pre-existing config
198 198
            file or the one created with fallback values.
199 199
    """
200 200
    if not fallback_config_instance:
@@ -202,7 +202,7 @@
Loading
202 202
            get_default_backend_config(appdirs)
203 203
        )
204 204
205 -
    config = SafeConfigParser()
205 +
    config = ConfigParser()
206 206
    path = get_config_path(appdirs, file_name)
207 207
    if not config.read(path):
208 208
        config = write_config_file(
@@ -244,7 +244,7 @@
Loading
244 244
        config (dict): Dictionary of config key/value pairs.
245 245
246 246
    Returns:
247 -
        SafeConfigParser: SafeConfigParser instance representing config.
247 +
        ConfigParser: ConfigParser instance representing config.
248 248
249 249
    Note:
250 250
        We do not provide *any* validation about mandatory values what so ever.
@@ -285,7 +285,7 @@
Loading
285 285
    def get_db_password():
286 286
        return text_type(config.get('db_password'))
287 287
288 -
    cp_instance = SafeConfigParser()
288 +
    cp_instance = ConfigParser()
289 289
    cp_instance.add_section('Backend')
290 290
    cp_instance.set('Backend', 'store', get_store())
291 291
    cp_instance.set('Backend', 'day_start', get_day_start())
Files Coverage
hamster_lib 94.76%
Project Totals (7 files) 94.76%
1113.4
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
1
codecov:
2
  branch: develop
3
  notify:
4
    require_ci_to_pass: yes
5
  archive:
6
    uploads: yes
7

8
coverage:
9
  precision: 2
10
  round: down
11
  range: "70...100"
12

13
  notify:
14
    irc:
15
      default:
16
        server: freenode.net
17
        branches: develop
18

19
  status:
20
    project:
21
      default:
22
        target: auto
23
        threshold: 0.1%
24
        branches: null
25
        base: auto
26
        set_pending: yes
27
        if_no_uploads: error
28
        if_not_found: success
29
        if_ci_failed: error
30

31

32
comment:
33
  layout: "header, diff, changes, uncovered"
34
  branches: null
35
  behavior: default
36
  flags: null
37
  paths: null
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading