mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
tests: khal: add testcase
for singlefile
This commit is contained in:
parent
ca2ab1d877
commit
58d90d298d
3 changed files with 19 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue