summaryrefslogtreecommitdiff
path: root/stacks/daemon/test_path_normalize.py
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
commit04d965d67a7264a1c7c211494aebda1953df7603 (patch)
tree0ebd700a6e219f84a26a656f4bee8778bc75da7b /stacks/daemon/test_path_normalize.py
Initial push
Diffstat (limited to 'stacks/daemon/test_path_normalize.py')
-rw-r--r--stacks/daemon/test_path_normalize.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/stacks/daemon/test_path_normalize.py b/stacks/daemon/test_path_normalize.py
new file mode 100644
index 0000000..c7b24e6
--- /dev/null
+++ b/stacks/daemon/test_path_normalize.py
@@ -0,0 +1,17 @@
+"""Tests for legacy bcpr path normalization."""
+
+from paths import MAX25_BCPR_KISS_DEFAULT, normalize_max25_bcpr_path
+
+
+def test_normalize_legacy_tmp_bcpr():
+ assert normalize_max25_bcpr_path("/tmp/bcpr/kiss-bc0") == "/tmp/max25-bcpr/kiss-bc0"
+ assert normalize_max25_bcpr_path("/tmp/bcpr") == "/tmp/max25-bcpr"
+ assert normalize_max25_bcpr_path("") == ""
+
+
+def test_canonical_unchanged():
+ assert (
+ normalize_max25_bcpr_path("/tmp/max25-bcpr/kiss-bc0")
+ == "/tmp/max25-bcpr/kiss-bc0"
+ )
+ assert MAX25_BCPR_KISS_DEFAULT == "/tmp/max25-bcpr/kiss-bc0"
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com