Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace test.com with special-use domain name. #769

Merged
merged 3 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

### Added

- Enum MediaType entry for PDF documents ([#758](https://github.com/stac-utils/pystac/pull/758))
- Enum MediaType entry for PDF documents ([#758](https://github.com/stac-utils/pystac/pull/758))
- Updated Link to obtain stac_io from owner root ([#762](https://github.com/stac-utils/pystac/pull/762))
- Replace test.com with special-use domain name. ([#769](https://github.com/stac-utils/pystac/pull/769))

### Removed

Expand Down
6 changes: 3 additions & 3 deletions tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def test_save_uses_previous_catalog_type(self) -> None:
def test_save_to_provided_href(self) -> None:
with tempfile.TemporaryDirectory() as tmp_dir:
catalog = TestCases.test_case_1()
href = "http://test.com"
href = "https://stac.test"
folder = os.path.join(tmp_dir, "cat")
catalog.normalize_hrefs(href)
catalog.save(catalog_type=CatalogType.ABSOLUTE_PUBLISHED, dest_href=folder)
Expand All @@ -341,7 +341,7 @@ def test_save_to_provided_href(self) -> None:
def test_save_relative_published_no_self_links(self) -> None:
with tempfile.TemporaryDirectory() as tmp_dir:
catalog = TestCases.test_case_1()
href = "http://test.com"
href = "https://stac.test"
folder = os.path.join(tmp_dir, "cat")
catalog.normalize_hrefs(href)
catalog.save(catalog_type=CatalogType.RELATIVE_PUBLISHED, dest_href=folder)
Expand Down Expand Up @@ -394,7 +394,7 @@ def test_save_with_different_stac_io(self) -> None:
def test_subcatalogs_saved_to_correct_path(self) -> None:
with tempfile.TemporaryDirectory() as tmp_dir:
catalog = TestCases.test_case_1()
href = "http://test.com"
href = "https://stac.test"

catalog.normalize_hrefs(href)
catalog.save(catalog_type=CatalogType.ABSOLUTE_PUBLISHED, dest_href=tmp_dir)
Expand Down