mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
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.
This commit is contained in:
parent
2d3e277b1e
commit
c9fb680dff
3 changed files with 24 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue