Skip to content

Commit 87fdb99

Browse files
committed
apply isort
1 parent 9d6b469 commit 87fdb99

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

pytest_httpbin/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import pytest
44

5-
65
here = os.path.dirname(__file__)
76
version_file = os.path.join(here, "version.py")
87

pytest_httpbin/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from __future__ import absolute_import
2+
23
import pytest
34
from httpbin import app as httpbin_app
4-
from . import serve, certs
5+
6+
from . import certs, serve
57

68
@pytest.fixture(scope='session')
79
def httpbin(request):

pytest_httpbin/serve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import os
2-
import threading
32
import ssl
4-
from wsgiref.simple_server import WSGIServer, make_server, WSGIRequestHandler
3+
import threading
54
from wsgiref.handlers import SimpleHandler
6-
from six.moves.urllib.parse import urljoin
5+
from wsgiref.simple_server import WSGIRequestHandler, WSGIServer, make_server
76

7+
from six.moves.urllib.parse import urljoin
88

99
CERT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'certs')
1010

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from setuptools import setup, find_packages
21
import codecs
32
import os
43

4+
from setuptools import find_packages, setup
5+
56
__version__ = None
67
with open("pytest_httpbin/version.py") as f:
78
code = compile(f.read(), "pytest_httpbin/version.py", 'exec')

tests/test_httpbin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import unittest
2+
23
import requests
4+
35
import pytest_httpbin
46

57

tests/test_server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
# vim: set fileencoding=utf8 :
44

55
import os
6-
import requests
6+
77
import pytest
8+
import requests
9+
from httpbin import app as httpbin_app
810
from util import get_raw_http_response
11+
912
from pytest_httpbin import serve
10-
from httpbin import app as httpbin_app
1113

1214

1315
def test_content_type_header_not_automatically_added(httpbin):

0 commit comments

Comments
 (0)