Conditions | 5 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # pylint: disable=unused-variable,unused-argument,expression-not-assigned |
||
9 | def describe_find_config(): |
||
10 | |||
11 | @pytest.fixture |
||
12 | def config(tmpdir): |
||
13 | tmpdir.chdir() |
||
14 | path = tmpdir.join("foo.bar") |
||
15 | path.write("") |
||
16 | return path |
||
17 | |||
18 | def when_missing(config): |
||
19 | with expect.raises(RuntimeError): |
||
20 | find_config() |
||
21 | |||
22 | def when_found(config): |
||
23 | path = find_config(config_filenames=["foo.bar"]) |
||
24 | |||
25 | expect(path) == config |
||
26 |
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.