Files
shelfmark/tests/config/test_mirror_settings_options.py
T
Alex f84fb082ad Fix: AA mirror behavior (#589)
- Refreshed available AA URLs
- Fixed potential redirect from AA itself causing mirror cache errors
- Added fully customizable mirror list in UI
- Segmented rotation behavior to Auto mode only

Fixes #588
2026-02-06 10:04:31 +00:00

12 lines
467 B
Python

def test_aa_base_url_options_include_configured_custom_url(monkeypatch):
import shelfmark.config.settings as settings
from shelfmark.core.config import config as config_obj
# Use a custom mirror not present in defaults/additional.
monkeypatch.setenv("AA_BASE_URL", "https://custom-aa.example")
config_obj.refresh()
options = settings._get_aa_base_url_options()
assert any(opt["value"] == "https://custom-aa.example" for opt in options)