1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

tests: khal: add testcase

for singlefile
This commit is contained in:
Malik 2025-10-22 14:52:54 +02:00 committed by Matthieu Coudron
parent ca2ab1d877
commit 58d90d298d
3 changed files with 19 additions and 1 deletions

View file

@ -58,7 +58,7 @@ let
"[[${name}]]"
"path = ${
value.local.path
+ "/"
+ "/" # TODO: dont add slash if type is "singlefile"
+ (optionalString (value.khal.type == "discover") value.khal.glob)
+ (optionalString (
value.khal.type == "birthdays" && value.khal ? thisCollection

View file

@ -58,6 +58,17 @@
url = "https://example.com/events.ical";
};
};
testSinglefile = {
khal = {
enable = true;
readOnly = true;
addresses = [ "study@university.edu" ];
};
local = {
type = "singlefile";
path = "$XDG_CONFIG_HOME/cal/timetable.ics";
};
};
};
};

View file

@ -23,6 +23,13 @@ priority=10
type=calendar
[[testSinglefile]]
path = $XDG_CONFIG_HOME/cal/timetable.ics
readonly = True
addresses= study@university.edu
priority=10
type=calendar
[[testcontacts-automaticallyCollected]]
path = /home/hm-user/$XDG_CONFIG_HOME/card/testcontacts/automaticallyCollected