-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tests: test_core pass storage_options correctly * tests: test_core gcs tests need token='anon' * tests: test_core test multiple filesystem interaction without s3_fixture * tests: move file:// tests to test_local implementation
- Loading branch information
Showing
2 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pytest | ||
|
||
from upath import UPath | ||
from upath.implementations.local import LocalPath | ||
from upath.tests.cases import BaseTests | ||
from upath.tests.utils import skip_on_windows | ||
|
||
|
||
@skip_on_windows | ||
class TestFSSpecLocal(BaseTests): | ||
@pytest.fixture(autouse=True) | ||
def path(self, local_testdir): | ||
path = f"file://{local_testdir}" | ||
self.path = UPath(path) | ||
|
||
def test_is_LocalPath(self): | ||
assert isinstance(self.path, LocalPath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters