Skip to content

Commit 5b8f00e

Browse files
author
Hugo Osvaldo Barrera
committed
Sort imports
1 parent 0556e53 commit 5b8f00e

35 files changed

+57
-59
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from setuptools import find_packages
99
from setuptools import setup
1010

11-
1211
requirements = [
1312
# https://github.com/mitsuhiko/click/issues/200
1413
"click>=5.0,<9.0",

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import click_log
99
import pytest
1010
from hypothesis import HealthCheck
11-
from hypothesis import settings
1211
from hypothesis import Verbosity
12+
from hypothesis import settings
1313

1414

1515
@pytest.fixture(autouse=True)

tests/storage/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
import aiostream
88
import pytest
99

10-
from .. import assert_item_equals
11-
from .. import EVENT_TEMPLATE
12-
from .. import normalize_item
13-
from .. import TASK_TEMPLATE
14-
from .. import VCARD_TEMPLATE
1510
from vdirsyncer import exceptions
1611
from vdirsyncer.storage.base import normalize_meta_value
1712
from vdirsyncer.vobject import Item
1813

14+
from .. import EVENT_TEMPLATE
15+
from .. import TASK_TEMPLATE
16+
from .. import VCARD_TEMPLATE
17+
from .. import assert_item_equals
18+
from .. import normalize_item
19+
1920

2021
def get_server_mixin(server_name):
2122
from . import __name__ as base

tests/storage/dav/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
import aiostream
66
import pytest
77

8-
from .. import get_server_mixin
9-
from .. import StorageTests
108
from tests import assert_item_equals
119
from vdirsyncer import exceptions
1210
from vdirsyncer.vobject import Item
1311

12+
from .. import StorageTests
13+
from .. import get_server_mixin
1414

1515
dav_server = os.environ.get("DAV_SERVER", "skip")
1616
ServerMixin = get_server_mixin(dav_server)

tests/storage/dav/test_caldav.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
import pytest
77
from aioresponses import aioresponses
88

9-
from . import dav_server
10-
from . import DAVStorageTests
11-
from .. import format_item
129
from tests import EVENT_TEMPLATE
1310
from tests import TASK_TEMPLATE
1411
from tests import VCARD_TEMPLATE
1512
from vdirsyncer import exceptions
1613
from vdirsyncer.storage.dav import CalDAVStorage
1714

15+
from .. import format_item
16+
from . import DAVStorageTests
17+
from . import dav_server
18+
1819

1920
class TestCalDAVStorage(DAVStorageTests):
2021
storage_class = CalDAVStorage

tests/storage/dav/test_carddav.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import pytest
22

3-
from . import DAVStorageTests
43
from vdirsyncer.storage.dav import CardDAVStorage
54

5+
from . import DAVStorageTests
6+
67

78
class TestCardDAVStorage(DAVStorageTests):
89
storage_class = CardDAVStorage

tests/storage/etesync/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import pytest
66
import requests
77

8-
from .. import StorageTests
98
from vdirsyncer.storage.etesync import EtesyncCalendars
109
from vdirsyncer.storage.etesync import EtesyncContacts
1110

11+
from .. import StorageTests
1212

1313
pytestmark = pytest.mark.skipif(
1414
os.getenv("ETESYNC_TESTS", "") != "true", reason="etesync tests disabled"

tests/storage/test_filesystem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import aiostream
44
import pytest
55

6-
from . import StorageTests
76
from vdirsyncer.storage.filesystem import FilesystemStorage
87
from vdirsyncer.vobject import Item
98

9+
from . import StorageTests
10+
1011

1112
class TestFilesystemStorage(StorageTests):
1213
storage_class = FilesystemStorage

tests/storage/test_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
2-
from aioresponses import aioresponses
32
from aioresponses import CallbackResult
3+
from aioresponses import aioresponses
44

55
from tests import normalize_item
66
from vdirsyncer.exceptions import UserError

tests/storage/test_http_with_singlefile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import aiostream
22
import pytest
3-
from aioresponses import aioresponses
43
from aioresponses import CallbackResult
4+
from aioresponses import aioresponses
55

66
import vdirsyncer.storage.http
7-
from . import StorageTests
87
from vdirsyncer.storage.base import Storage
98
from vdirsyncer.storage.singlefile import SingleFileStorage
109

10+
from . import StorageTests
11+
1112

1213
class CombinedStorage(Storage):
1314
"""A subclass of HttpStorage to make testing easier. It supports writes via

0 commit comments

Comments
 (0)