diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-28 13:02:50 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-28 13:02:50 -0500 |
| commit | c9fb680dffa37517bbda76cc2b572d6f192508bd (patch) | |
| tree | 4d8c1f93ab2be6618eb358b603db62839e40ca03 /tests/unit | |
| parent | 2d3e277b1e0c0a24c30c611558692f95d14a8470 (diff) | |
| download | flake8-c9fb680dffa37517bbda76cc2b572d6f192508bd.tar.gz | |
Add python and platform details to --version
On Flake8 2.x we added the information about the implementation,
version, and operating system to the --version output to make helping
users easier. In short they can pretty simply just give us the output
from
flake8 --version
And we can get a lot of the information that we need.
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_option_manager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/test_option_manager.py b/tests/unit/test_option_manager.py index 53e8bf1..6f6cb17 100644 --- a/tests/unit/test_option_manager.py +++ b/tests/unit/test_option_manager.py @@ -4,6 +4,7 @@ import os import pytest +from flake8 import utils from flake8.options import manager TEST_VERSION = '3.0.0b1' @@ -162,7 +163,8 @@ def test_update_version_string(optmanager): assert optmanager.version == TEST_VERSION assert (optmanager.parser.version == TEST_VERSION + ' (' - 'Testing 100: 0.0.0, Testing 101: 0.0.0, Testing 300: 0.0.0)') + 'Testing 100: 0.0.0, Testing 101: 0.0.0, Testing 300: 0.0.0) ' + + utils.get_python_version()) def test_generate_epilog(optmanager): |
