adjust version unit test

to accomodate for new output from path info

refs #1947
This commit is contained in:
Daniel Karbach 2016-09-27 12:48:19 +02:00
parent 7ce442c771
commit 10a1977459

View File

@ -644,6 +644,7 @@ def test_version_output(git_commit, frozen, style, equal_qt, with_webkit,
'platform.platform': lambda: 'PLATFORM',
'platform.architecture': lambda: ('ARCHITECTURE', ''),
'_os_info': lambda: ['OS INFO 1', 'OS INFO 2'],
'_path_info': lambda: {'PATH DESC': 'PATH NAME'},
'QApplication': (stubs.FakeQApplication(style='STYLE') if style else
stubs.FakeQApplication(instance=None)),
}
@ -674,6 +675,9 @@ def test_version_output(git_commit, frozen, style, equal_qt, with_webkit,
Imported from {import_path}
OS INFO 1
OS INFO 2
Paths
PATH DESC: PATH NAME
""".lstrip('\n'))
substitutions = {