aboutsummaryrefslogtreecommitdiff
path: root/cmd/clectio-gen
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 20:56:46 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 20:56:46 +0200
commit7d26aa60349e72c3d437d329a678a51331914233 (patch)
tree1f54e498d7a55f71b655a0cffbb306f84193ea8b /cmd/clectio-gen
parent790d89eaaa130d3446f8e9af4dff793a569bb98d (diff)
downloadlectio-7d26aa60349e72c3d437d329a678a51331914233.tar.gz
lectio-7d26aa60349e72c3d437d329a678a51331914233.zip
test(cli): isolate the suite from the real ~/.config/lectio
The ref/rand cli tests assume English book abbreviations ("Jn 3:16"), but with no LECTIO_CONFIG set they read the developer's real user config. On a machine whose config has ui_language = pl (sigla_style = auto -> Polish dialect), "Jn" is not a valid abbreviation and TestRefSingle, TestRefEnglishDialect, TestRefRejectsPolishAbbrevInEnglish, TestRefCompare and TestRandVerse fail -- while passing on a clean CI. Add a package TestMain that points LECTIO_CONFIG at a throwaway temp path, forcing built-in defaults for every cli test and guaranteeing the suite never reads or writes the real user config. Suite now green on a Polish config too.
Diffstat (limited to 'cmd/clectio-gen')
0 files changed, 0 insertions, 0 deletions