for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# pylint: disable=unused-variable,unused-argument,expression-not-assigned
import pytest
pytest
This can be caused by one of the following:
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
# .scrutinizer.yml before_commands: - sudo pip install abc # Python2 - sudo pip3 install abc # Python3
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.
__init__.py
from expecter import expect
expecter
from verchew.script import find_config, parse_config
def describe_find_config():
@pytest.fixture
def config(tmpdir):
tmpdir.chdir()
path = tmpdir.join("foo.bar")
path.write("")
return path
def when_missing(config):
with expect.raises(RuntimeError):
find_config()
def when_found(config):
path = find_config(config_filenames=["foo.bar"])
expect(path) == config
def describe_parse_config():
path = tmpdir.join("verchew.ini")
def with_no_content(config):
config.write("")
expect(parse_config(str(config))) == {}
def with_an_empty_section(config):
config.write("""
[Foobar]
""")
expect(parse_config(str(config))) == {
'Foobar': {},
}
def with_a_filled_section(config):
cli = foobar
version = v1.2.3
'Foobar': {
'cli': 'foobar',
'version': 'v1.2.3',
},
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.