-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Require Python 3.9+ Drop older versions from test matrix, update GDAL versions. * Remove unused c++ cdef class and directive * Add numpy dependency for conda builds * Second try at numpy spec * Again with the version spec * Fix broken YAML * Address weird Windows path parsing * Adjust a few tests * Moar windows/posix path bs * import Path * Assert that drive letter remains and ! is gone in win32 path test * Stop using as_posix in _path.py * Fix archive/path parsing bug * Update RTD build environment, adding numpy * Remove unused imports in tests.
- Loading branch information
Showing
9 changed files
with
59 additions
and
43 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
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
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
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
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
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
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
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,23 @@ | ||
"""_path tests.""" | ||
|
||
import sys | ||
|
||
from fiona._path import _parse_path, _vsi_path | ||
|
||
|
||
def test_parse_zip_windows(monkeypatch): | ||
"""Parse a zip+ Windows path.""" | ||
monkeypatch.setattr(sys, "platform", "win32") | ||
path = _parse_path("zip://D:\\a\\Fiona\\Fiona\\tests\\data\\coutwildrnp.zip!coutwildrnp.shp") | ||
vsi_path = _vsi_path(path) | ||
assert vsi_path.startswith("/vsizip/D") | ||
assert vsi_path.endswith("coutwildrnp.zip/coutwildrnp.shp") | ||
|
||
|
||
def test_parse_zip_windows(monkeypatch): | ||
"""Parse a tar+ Windows path.""" | ||
monkeypatch.setattr(sys, "platform", "win32") | ||
path = _parse_path("tar://D:\\a\\Fiona\\Fiona\\tests\\data\\coutwildrnp.tar!testing/coutwildrnp.shp") | ||
vsi_path = _vsi_path(path) | ||
assert vsi_path.startswith("/vsitar/D") | ||
assert vsi_path.endswith("coutwildrnp.tar/testing/coutwildrnp.shp") |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Layer tests.""" | ||
|
||
import pytest | ||
|
||
import fiona | ||
|