| Conditions | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 6 | ||
| Bugs | 0 | Features | 0 |
| 1 | import textwrap |
||
| 35 | def test_status(git_repo): |
||
| 36 | result = CliRunner().invoke( |
||
| 37 | main, |
||
| 38 | ['status'], |
||
| 39 | env={AUTH_TOKEN_ENVVAR: 'foo'}, |
||
| 40 | ) |
||
| 41 | assert 0 == result.exit_code |
||
| 42 | |||
| 43 | expected_output = textwrap.dedent( |
||
| 44 | """\ |
||
| 45 | Indexing repository... |
||
| 46 | Looking for Github Auth Token in the environment... |
||
| 47 | Found Github Auth Token in the environment... |
||
| 48 | Repository: michaeljoseph/test_app... |
||
| 49 | Latest Version... |
||
| 50 | 0.0.0 |
||
| 51 | Changes... |
||
| 52 | 0 changes found since 0.0.0 |
||
| 53 | """ |
||
| 54 | ) |
||
| 55 | assert expected_output == result.output |
||
| 56 |
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.