Conditions | 2 |
Total Lines | 44 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
44 | @responses.activate |
||
45 | def test_publish( |
||
46 | capsys, |
||
47 | configured, |
||
48 | answer_prompts, |
||
49 | ): |
||
50 | |||
51 | github_merge_commit(111) |
||
52 | responses.add( |
||
53 | responses.GET, |
||
54 | ISSUE_URL.format('111'), |
||
55 | json=PULL_REQUEST_JSON, |
||
56 | status=200, |
||
57 | content_type='application/json' |
||
58 | ) |
||
59 | responses.add( |
||
60 | responses.GET, |
||
61 | LABEL_URL, |
||
62 | json=BUG_LABEL_JSON, |
||
63 | status=200, |
||
64 | content_type='application/json' |
||
65 | ) |
||
66 | |||
67 | init.init() |
||
68 | stage.stage( |
||
69 | draft=False, |
||
70 | release_name='Icarus', |
||
71 | release_description='The first flight' |
||
72 | ) |
||
73 | publish.publish() |
||
74 | |||
75 | expected_output = textwrap.dedent( |
||
76 | """\ |
||
77 | Staging [fix] release for version 0.0.2... |
||
78 | Running: bumpversion --verbose --allow-dirty --no-commit --no-tag patch... |
||
79 | Generating Release... |
||
80 | Writing release notes to {}... |
||
81 | Publish release 0.0.2... |
||
82 | """.format( |
||
83 | Path('docs').joinpath('releases').joinpath('0.0.2.md') |
||
84 | ) |
||
85 | ) |
||
86 | out, _ = capsys.readouterr() |
||
87 | assert expected_output == out |
||
88 |
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.