| Conditions | 6 |
| Total Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 6 | ||
| Bugs | 0 | Features | 0 |
| 1 | from plumbum.cmd import git |
||
| 13 | |||
| 14 | def test_repository_parses_versions(git_repo_with_merge_commit): |
||
| 15 | repository = models.GitRepository() |
||
| 16 | |||
| 17 | v1 = Version('0.0.1') |
||
| 18 | |||
| 19 | assert [v1] == repository.versions |
||
| 20 | |||
| 21 | assert v1 == repository.latest_version |
||
| 22 | |||
| 23 | |||
| 24 | def test_latest_version_unreleased(git_repo): |
||
| 25 | repository = models.GitRepository() |
||
| 26 | |||
| 27 | assert 0 == len(repository.versions) |
||
| 28 | |||
| 29 | assert models.GitRepository.VERSION_ZERO == repository.latest_version |
||
| 30 | |||
| 31 | |||
| 32 | def test_latest_version(git_repo_with_merge_commit): |
||
| 33 | git('tag', '0.0.2') |
||
| 34 | git('tag', '0.0.3') |
||
| 35 | |||
| 36 | repository = models.GitRepository() |
||
| 37 | |||
| 38 | expected_versions = [ |
||
| 39 | Version('0.0.1'), |
||
| 40 | Version('0.0.2'), |
||
| 41 | Version('0.0.3'), |
||
| 42 | ] |
||
| 46 |
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.