Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
- { python: "3.11", os: "ubuntu-latest" }
- { python: "3.12", os: "ubuntu-latest" }
- { python: "3.13", os: "ubuntu-latest" }
- { python: "3.13", os: "windows-latest" }
- { python: "3.13", os: "macos-latest" }
- { python: "3.14", os: "ubuntu-latest" }
- { python: "3.14", os: "windows-latest" }
- { python: "3.14", os: "macos-latest" }
steps:
- name: Check out the repository
uses: actions/checkout@v6
Expand Down
5 changes: 4 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import unittest.mock

import pytest
import sys
from click.testing import CliRunner

from stac_api_validator import __main__
Expand All @@ -29,7 +30,9 @@ def test_retrieve_called_with_auth_headers(

expected_headers = {
"User-Agent": f"python-requests/{requests_version}",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd"
if sys.version_info >= (3, 14)
else "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive",
"Authorization": "api-key fake-api-key-value",
Expand Down
5 changes: 4 additions & 1 deletion tests/test_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import pystac
import pytest
import requests
import sys

from stac_api_validator import validations

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