Skip to content

Commit acdcb1e

Browse files
authored
Merge branch 'main' into fix/388-collection-none
2 parents 6781bf4 + 1ebd2a3 commit acdcb1e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
- { python: "3.11", os: "ubuntu-latest" }
1818
- { python: "3.12", os: "ubuntu-latest" }
1919
- { python: "3.13", os: "ubuntu-latest" }
20-
- { python: "3.13", os: "windows-latest" }
21-
- { python: "3.13", os: "macos-latest" }
20+
- { python: "3.14", os: "ubuntu-latest" }
21+
- { python: "3.14", os: "windows-latest" }
22+
- { python: "3.14", os: "macos-latest" }
2223
steps:
2324
- name: Check out the repository
2425
uses: actions/checkout@v6

tests/test_main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import unittest.mock
44

55
import pytest
6+
import sys
67
from click.testing import CliRunner
78

89
from stac_api_validator import __main__
@@ -29,7 +30,9 @@ def test_retrieve_called_with_auth_headers(
2930

3031
expected_headers = {
3132
"User-Agent": f"python-requests/{requests_version}",
32-
"Accept-Encoding": "gzip, deflate",
33+
"Accept-Encoding": "gzip, deflate, zstd"
34+
if sys.version_info >= (3, 14)
35+
else "gzip, deflate",
3336
"Accept": "*/*",
3437
"Connection": "keep-alive",
3538
"Authorization": "api-key fake-api-key-value",

tests/test_validations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import pystac
1414
import pytest
1515
import requests
16+
import sys
1617

1718
from stac_api_validator import validations
1819

@@ -55,7 +56,9 @@ def stac_check_config() -> Generator[str, None, None]:
5556
def expected_headers(requests_version: str) -> Generator[Dict[str, str], None, None]:
5657
yield {
5758
"User-Agent": f"python-requests/{requests_version}",
58-
"Accept-Encoding": "gzip, deflate",
59+
"Accept-Encoding": "gzip, deflate, zstd"
60+
if sys.version_info >= (3, 14)
61+
else "gzip, deflate",
5962
"Accept": "*/*",
6063
"Connection": "keep-alive",
6164
"Authorization": "api-key fake-api-key-value",

0 commit comments

Comments
 (0)