Conditions | 2 |
Total Lines | 41 |
Lines | 0 |
Ratio | 0 % |
Changes | 8 | ||
Bugs | 0 | Features | 0 |
1 | import textwrap |
||
42 | @responses.activate |
||
43 | def test_status_with_changes( |
||
44 | capsys, |
||
45 | git_repo, |
||
46 | configured, |
||
47 | ): |
||
48 | |||
49 | responses.add( |
||
50 | responses.GET, |
||
51 | LABEL_URL, |
||
52 | json=BUG_LABEL_JSON, |
||
53 | status=200, |
||
54 | content_type='application/json' |
||
55 | ) |
||
56 | |||
57 | github_merge_commit(111) |
||
58 | responses.add( |
||
59 | responses.GET, |
||
60 | ISSUE_URL.format('111'), |
||
61 | json=PULL_REQUEST_JSON, |
||
62 | status=200, |
||
63 | content_type='application/json' |
||
64 | ) |
||
65 | |||
66 | status.status() |
||
67 | |||
68 | expected_output = textwrap.dedent( |
||
69 | """\ |
||
70 | Status [michaeljoseph/test_app]... |
||
71 | Repository: michaeljoseph/test_app... |
||
72 | Latest Version... |
||
73 | 0.0.1 |
||
74 | Changes... |
||
75 | 1 changes found since 0.0.1 |
||
76 | #111 The title of the pull request by @someone [bug] |
||
77 | Computed release type fix from changes issue tags... |
||
78 | Proposed version bump 0.0.1 => 0.0.2... |
||
79 | """ |
||
80 | ) |
||
81 | out, _ = capsys.readouterr() |
||
82 | assert expected_output == out |
||
83 |
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.