diff options
author | David Lord <davidism@gmail.com> | 2020-03-06 13:19:03 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2020-03-06 13:19:03 -0800 |
commit | 488739dfe0d51f415c7b20466648cc519962ecbb (patch) | |
tree | 3fff5eff73b9013096b9f0b421ffba26b6735195 /tests | |
parent | c7812823f3e165f2979d888e19a82590b0169917 (diff) | |
download | click-488739dfe0d51f415c7b20466648cc519962ecbb.tar.gz |
apply reorder-python-imports
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conftest.py | 4 | ||||
-rw-r--r-- | tests/test_arguments.py | 7 | ||||
-rw-r--r-- | tests/test_bashcomplete.py | 1 | ||||
-rw-r--r-- | tests/test_basic.py | 1 | ||||
-rw-r--r-- | tests/test_chain.py | 4 | ||||
-rw-r--r-- | tests/test_commands.py | 1 | ||||
-rw-r--r-- | tests/test_compat.py | 6 | ||||
-rw-r--r-- | tests/test_imports.py | 2 | ||||
-rw-r--r-- | tests/test_options.py | 5 | ||||
-rw-r--r-- | tests/test_termui.py | 5 | ||||
-rw-r--r-- | tests/test_testing.py | 6 | ||||
-rw-r--r-- | tests/test_utils.py | 6 |
12 files changed, 27 insertions, 21 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 3aac933..05b59c1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,7 @@ -from click.testing import CliRunner - import pytest +from click.testing import CliRunner + @pytest.fixture(scope='function') def runner(request): diff --git a/tests/test_arguments.py b/tests/test_arguments.py index 65d9a1e..f92a560 100644 --- a/tests/test_arguments.py +++ b/tests/test_arguments.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- +import sys + import pytest + import click -import sys -from click._compat import PY2, text_type +from click._compat import PY2 +from click._compat import text_type def test_nargs_star(runner): diff --git a/tests/test_bashcomplete.py b/tests/test_bashcomplete.py index 5eb4068..05557a0 100644 --- a/tests/test_bashcomplete.py +++ b/tests/test_bashcomplete.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- - import pytest import click diff --git a/tests/test_basic.py b/tests/test_basic.py index f800b4d..939c205 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import os import uuid + import click diff --git a/tests/test_chain.py b/tests/test_chain.py index 56a60e3..282920c 100644 --- a/tests/test_chain.py +++ b/tests/test_chain.py @@ -1,7 +1,9 @@ import sys -import click + import pytest +import click + def debug(): click.echo('%s=%s' % ( diff --git a/tests/test_commands.py b/tests/test_commands.py index 8186add..aa96e71 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -2,7 +2,6 @@ import re import click -import pytest def test_other_command_invoke(runner): diff --git a/tests/test_compat.py b/tests/test_compat.py index 674cded..152301d 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -1,6 +1,8 @@ -import click import pytest -from click._compat import should_strip_ansi, WIN + +import click +from click._compat import should_strip_ansi +from click._compat import WIN def test_legacy_callbacks(runner): diff --git a/tests/test_imports.py b/tests/test_imports.py index 268c606..00b604b 100644 --- a/tests/test_imports.py +++ b/tests/test_imports.py @@ -1,6 +1,6 @@ -import sys import json import subprocess +import sys from click._compat import WIN diff --git a/tests/test_options.py b/tests/test_options.py index 4a13a0a..f3156b0 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- -import re import os -import click +import re + import pytest +import click from click._compat import text_type diff --git a/tests/test_termui.py b/tests/test_termui.py index c6e06b6..098e335 100644 --- a/tests/test_termui.py +++ b/tests/test_termui.py @@ -1,9 +1,8 @@ # -*- coding: utf-8 -*- -import pytest - -import click import time +import pytest + import click._termui_impl from click._compat import WIN diff --git a/tests/test_testing.py b/tests/test_testing.py index 7b03947..7802bbf 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -2,12 +2,12 @@ import os import sys import pytest -import click +import click +from click._compat import PY2 +from click._compat import WIN from click.testing import CliRunner -from click._compat import PY2, WIN - # Use the most reasonable io that users would use for the python version. if PY2: from cStringIO import StringIO as ReasonableBytesIO diff --git a/tests/test_utils.py b/tests/test_utils.py index 93f1ca0..6ea9f94 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -4,10 +4,10 @@ import sys import pytest -import click -import click.utils import click._termui_impl -from click._compat import WIN, PY2 +import click.utils +from click._compat import PY2 +from click._compat import WIN def test_echo(runner): |