| Conditions | 2 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 36 | def test_init_finds_auth_token_in_environment( |
||
| 37 | capsys, |
||
| 38 | git_repo_with_merge_commit, |
||
| 39 | with_auth_token_envvar |
||
| 40 | ): |
||
| 41 | git('tag', '0.0.2') |
||
| 42 | git('tag', '0.0.3') |
||
| 43 | |||
| 44 | init.init() |
||
| 45 | |||
| 46 | expected_output = textwrap.dedent( |
||
| 47 | """\ |
||
| 48 | Indexing repository... |
||
| 49 | Looking for Github Auth Token in the environment... |
||
| 50 | Found Github Auth Token in the environment... |
||
| 51 | """ |
||
| 52 | ) |
||
| 53 | out, _ = capsys.readouterr() |
||
| 54 | assert expected_output == out |
||
| 55 |
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__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.