mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-10-03 13:45:55 +01:00
- Update file movement to prefer copy - Improved mirror config overwriting on app updates - Request / user DB hardening
12 lines
542 B
Python
12 lines
542 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")
|
|
monkeypatch.delattr(config_obj, "_env_synced", raising=False)
|
|
config_obj.refresh(force=True)
|
|
|
|
options = settings._get_aa_base_url_options()
|
|
assert any(opt["value"] == "https://custom-aa.example" for opt in options)
|