for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned
import os
import sys
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
import scripttest
scripttest
from expecter import expect
expecter
import six
@pytest.fixture
def env(tmpdir):
path = str(tmpdir.join('test'))
env = scripttest.TestFileEnvironment(path)
return env
def cli(env, *args):
prog = os.path.join(os.path.dirname(sys.executable), 'verchew')
cmd = env.run(prog, *args, expect_error=True)
six.print_(cmd)
return cmd
def describe_cli():
def it_displays_help_information(env):
cmd = cli(env, '--help')
expect(cmd.returncode) == 0
expect(cmd.stdout).contains("usage: verchew")
def it_displays_version_information(env):
cmd = cli(env, '--version')
expect(cmd.stdout or cmd.stderr).contains("verchew v0.")
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.