for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import responses
responses
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 semantic_version import Version
semantic_version
from changes import models
def test_repository_parses_remote_url(git_repo):
test_repository_parses_remote_url
[a-z_][a-z0-9_]{2,30}$
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
repository = models.GitRepository()
assert 'test_app' == repository.repo
assert 'michaeljoseph' == repository.owner
@responses.activate
def test_merged_pull_requests(git_repo_with_merge_commit):
responses.add(
responses.GET,
'https://api.github.com/repos/michaeljoseph/test_app/pulls/111',
json={
'title': 'The title of the pull request',
'body': 'An optional, longer description.',
'user': {
'login': 'someone'
},
'labels': [
{'id': 1, 'name': 'feature'}
],
status=200,
content_type='application/json'
)
assert 1 == len(repository.pull_requests)
first_pull_request = repository.pull_requests[0]
assert '111' == first_pull_request.number
assert ['feature'] == first_pull_request.labels
assert [] == repository.versions
assert Version('0.0.0') == repository.latest_version
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.