Skip to content

Commit 24295e7

Browse files
committed
formatting
1 parent 3e7cb3d commit 24295e7

File tree

6 files changed

+3
-14
lines changed

6 files changed

+3
-14
lines changed

upath/tests/cases.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class BaseTests:
9-
109
def test_cwd(self):
1110
with pytest.raises(NotImplementedError):
1211
self.path.cwd()
@@ -206,7 +205,7 @@ def make_test_files(self):
206205
file2 = self.path.joinpath("file2.txt")
207206
file2.touch()
208207
file2.write_bytes(b"hello world")
209-
208+
210209
def test_fsspec_compat(self):
211210
fs = self.path.fs
212211
scheme = self.path._url.scheme

upath/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def pytest_collection_modifyitems(config, items):
3434

3535
class DummyTestFS(LocalFileSystem):
3636
protocol = "mock"
37-
root_marker = '/'
37+
root_marker = "/"
3838

3939

4040
@pytest.fixture(scope="session")

upath/tests/implementations/test_memory.py

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

88

99
class TestMemoryPath(BaseTests):
10-
1110
@pytest.fixture(autouse=True)
1211
def path(self, local_testdir):
1312
path = f"memory:/{local_testdir}"

upath/tests/implementations/test_s3.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
"""
33
import pytest # noqa: F401
44

5-
from s3fs import S3FileSystem
6-
75
from upath import UPath
86
from upath.errors import NotDirectoryError
97
from upath.implementations.s3 import S3Path
108
from upath.tests.cases import BaseTests
119

1210

1311
class TestUPathS3(BaseTests):
14-
1512
@pytest.fixture(autouse=True)
1613
def path(self, local_testdir, s3):
1714
anon, s3so = s3
@@ -20,7 +17,6 @@ def path(self, local_testdir, s3):
2017
self.anon = anon
2118
self.s3so = s3so
2219

23-
2420
def test_is_S3Path(self):
2521
assert isinstance(self.path, S3Path)
2622

upath/tests/test_core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import sys
22
import pathlib
3-
from pathlib import Path
43
import warnings
54

65
import pytest
7-
from fsspec.registry import get_filesystem_class
86

97
from upath import UPath
108
from upath.tests.cases import BaseTests
@@ -33,9 +31,7 @@ def test_UPath_warning():
3331
assert "mock" in str(w[-1].message)
3432

3533

36-
3734
class TestUpath(BaseTests):
38-
3935
@pytest.fixture(autouse=True)
4036
def path(self, local_testdir):
4137
with warnings.catch_warnings():

upath/universal_path.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def _transform_arg_paths(self, args, kwargs):
4646
return args, kwargs
4747

4848
def _format_path(self, s):
49-
"""placeholder method for subclassed filesystems
50-
"""
49+
"""placeholder method for subclassed filesystems"""
5150
return s
5251

5352
def __getattribute__(self, item):

0 commit comments

Comments
 (0)