Skip to content

Commit d536c40

Browse files
authored
FIX: update tests for github runner drive changes (#1563)
* change drive to C:/ * update changelog
1 parent 7621455 commit d536c40

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if: runner.os == 'Windows'
4646
shell: bash
4747
env:
48-
TMPDIR: 'D:\\a\\_temp'
48+
TMPDIR: 'C:\\a\\_temp'
4949
run: uv run pytest tests
5050
- name: Test
5151
if: runner.os != 'Windows'

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
media type value for these types and new media types COPC and VND_PMTILES
99
([#1554](https://github.com/stac-utils/pystac/pull/1554))
1010

11+
### Changed
12+
13+
- Update drive used by windows runners during tests
14+
1115
### Fixed
1216

1317
- More permissive collection extent deserialization ([#1559](https://github.com/stac-utils/pystac/pull/1559))

tests/test_layout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class TestAsIsLayoutStrategy:
405405
def test_catalog(self) -> None:
406406
strategy = AsIsLayoutStrategy()
407407
expected_local_href = (
408-
"/an/href" if not path_includes_drive_letter() else "D:/an/href"
408+
"/an/href" if not path_includes_drive_letter() else "C:/an/href"
409409
)
410410
cat = pystac.Catalog(id="test", description="test desc")
411411
with pytest.raises(ValueError):
@@ -417,7 +417,7 @@ def test_catalog(self) -> None:
417417
def test_collection(self) -> None:
418418
strategy = AsIsLayoutStrategy()
419419
expected_local_href = (
420-
"/an/href" if not path_includes_drive_letter() else "D:/an/href"
420+
"/an/href" if not path_includes_drive_letter() else "C:/an/href"
421421
)
422422
collection = TestCases.case_8()
423423
collection.set_self_href(None)
@@ -432,7 +432,7 @@ def test_collection(self) -> None:
432432
def test_item(self) -> None:
433433
strategy = AsIsLayoutStrategy()
434434
expected_local_href = (
435-
"/an/href" if not path_includes_drive_letter() else "D:/an/href"
435+
"/an/href" if not path_includes_drive_letter() else "C:/an/href"
436436
)
437437
collection = TestCases.case_8()
438438
item = next(collection.get_items(recursive=True))

0 commit comments

Comments
 (0)