Conditions | 6 |
Total Lines | 29 |
Lines | 0 |
Ratio | 0 % |
Changes | 6 | ||
Bugs | 0 | Features | 0 |
1 | import responses |
||
13 | @responses.activate |
||
14 | def test_merged_pull_requests(git_repo_with_merge_commit): |
||
15 | responses.add( |
||
16 | responses.GET, |
||
17 | 'https://api.github.com/repos/michaeljoseph/test_app/pulls/111', |
||
18 | json={ |
||
19 | 'title': 'The title of the pull request', |
||
20 | 'body': 'An optional, longer description.', |
||
21 | 'user': { |
||
22 | 'login': 'someone' |
||
23 | }, |
||
24 | 'labels': [ |
||
25 | {'id': 1, 'name': 'feature'} |
||
26 | ], |
||
27 | }, |
||
28 | status=200, |
||
29 | content_type='application/json' |
||
30 | ) |
||
31 | |||
32 | repository = models.GitRepository() |
||
33 | assert 1 == len(repository.pull_requests) |
||
34 | |||
35 | first_pull_request = repository.pull_requests[0] |
||
36 | assert '111' == first_pull_request.number |
||
37 | assert ['feature'] == first_pull_request.labels |
||
38 | |||
39 | assert [] == repository.versions |
||
40 | |||
41 | assert Version('0.0.0') == repository.latest_version |
||
42 |
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.