ubuntu@artful-gu-test-hang-1733388:~/git/projects/usd-importer$ pytest-3 gitubuntu/*.py
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.3, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
rootdir: /home/ubuntu/git/projects/usd-importer, inifile:
collected 85 items
gitubuntu/build.py ........
gitubuntu/git_repository.py .FF.....
gitubuntu/lint.py ..........
gitubuntu/repo_builder.py .........
gitubuntu/test_git_repository.py .........
gitubuntu/test_importer.py ...
gitubuntu/versioning.py ......................................
==================================================================================================== FAILURES =====================================================================================================
_______________________________________________________________________ test_changelog_versions[tests/changelogs/test_versions_2-expected1] _______________________________________________________________________
changelog_path = 'tests/changelogs/test_versions_2', expected = ['2.0', '1.0']
@pytest.mark.parametrize('changelog_path, expected', [
('tests/changelogs/test_versions_1', ['1.0', None]),
('tests/changelogs/test_versions_2', ['2.0', '1.0']),
('tests/changelogs/test_versions_3', ['4.0', '3.0']),
('tests/changelogs/test_versions_unknown', ['ss-970814-1', None]),
])
def test_changelog_versions(changelog_path, expected):
test_changelog = Changelog.from_path(changelog_path)
> assert [test_changelog.version, test_changelog.previous_version] == expected
gitubuntu/git_repository.py:360:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <gitubuntu.git_repository.Changelog object at 0x7f500f87d668>
@property
def previous_version(self):
if self._changelog:
try:
ret = str(self._changelog.versions[1]).strip()
if ret != self._shell_previous_version:
raise ChangelogError(
'Old (%s) and new (%s) changelog values do not agree' %
> (self._shell_previous_version, ret)
)
E gitubuntu.git_repository.ChangelogError: Old (2.0) and new (1.0) changelog values do not agree
gitubuntu/git_repository.py:225: ChangelogError
_______________________________________________________________________ test_changelog_versions[tests/changelogs/test_versions_3-expected2] _______________________________________________________________________
changelog_path = 'tests/changelogs/test_versions_3', expected = ['4.0', '3.0']
@pytest.mark.parametrize('changelog_path, expected', [
('tests/changelogs/test_versions_1', ['1.0', None]),
('tests/changelogs/test_versions_2', ['2.0', '1.0']),
('tests/changelogs/test_versions_3', ['4.0', '3.0']),
('tests/changelogs/test_versions_unknown', ['ss-970814-1', None]),
])
def test_changelog_versions(changelog_path, expected):
test_changelog = Changelog.from_path(changelog_path)
> assert [test_changelog.version, test_changelog.previous_version] == expected
gitubuntu/git_repository.py:360:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <gitubuntu.git_repository.Changelog object at 0x7f500f807780>
@property
def previous_version(self):
if self._changelog:
try:
ret = str(self._changelog.versions[1]).strip()
if ret != self._shell_previous_version:
raise ChangelogError(
'Old (%s) and new (%s) changelog values do not agree' %
> (self._shell_previous_version, ret)
)
E gitubuntu.git_repository.ChangelogError: Old (4.0) and new (3.0) changelog values do not agree
gitubuntu/git_repository.py:225: ChangelogError
======================================================================================= 2 failed, 83 passed in 0.52 seconds =======================================================================================
ubuntu@artful-gu-test-hang-1733388:~/git/projects/usd-importer$