Skip to content

Commit d2782a5

Browse files
tekskmodali
authored andcommitted
993 progress: convert 2 more test files to pytest; 5 remain (stac-utils#1533)
* 993 start conversion of test_raster.py * 993 nonfunctional de-class of test_raster.py * 993 de-class test_raster.py's cassettes * 993 start refactor & prove w/couple tests * 993 convert assertions to pytest in test_raster.py * 993 finish conversion of test_raster.py * 993 pre-commit faff * 993 convert assertions in test_sar.py * 993 convert the cassette-using tests in test_sar.py * 993 provide a sentinel fixture & prove it works * 993 convert remaining SarItemExtTest tests * 993 prep for converting SarSummariesTest * 993 non-functional declassing * 993 convert summaries tests in test_sar.py * 993 pre-commit to finish test_sar.py
1 parent 5f1cb6f commit d2782a5

File tree

7 files changed

+492
-598
lines changed

7 files changed

+492
-598
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from .utils import ARBITRARY_BBOX, ARBITRARY_EXTENT, ARBITRARY_GEOM, TestCases
1515

16-
here = Path(__file__).resolve().parent
16+
HERE = Path(__file__).resolve().parent
1717

1818

1919
@pytest.fixture
@@ -60,7 +60,7 @@ def projection_landsat8_item() -> Item:
6060

6161

6262
def get_data_file(rel_path: str) -> str:
63-
return str(here / "data-files" / rel_path)
63+
return str(HERE / "data-files" / rel_path)
6464

6565

6666
@pytest.fixture

0 commit comments

Comments
 (0)