Conditions | 5 |
Total Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # pylint: disable=unused-variable,unused-argument,expression-not-assigned |
||
28 | def describe_parse_config(): |
||
29 | |||
30 | @pytest.fixture |
||
31 | def config(tmpdir): |
||
32 | tmpdir.chdir() |
||
33 | path = tmpdir.join("verchew.ini") |
||
34 | path.write("") |
||
35 | return path |
||
36 | |||
37 | def with_no_content(config): |
||
38 | config.write("") |
||
39 | |||
40 | expect(parse_config(str(config))) == {} |
||
41 | |||
42 | def with_an_empty_section(config): |
||
43 | config.write(""" |
||
44 | [Foobar] |
||
45 | """) |
||
46 | |||
47 | expect(parse_config(str(config))) == { |
||
48 | 'Foobar': {}, |
||
49 | } |
||
50 | |||
51 | def with_a_filled_section(config): |
||
52 | config.write(""" |
||
53 | [Foobar] |
||
54 | |||
55 | cli = foobar |
||
56 | version = v1.2.3 |
||
57 | """) |
||
58 | |||
59 | expect(parse_config(str(config))) == { |
||
60 | 'Foobar': { |
||
65 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.