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:
parent
ca2ab1d877
commit
58d90d298d
3 changed files with 19 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ let
|
||||||
"[[${name}]]"
|
"[[${name}]]"
|
||||||
"path = ${
|
"path = ${
|
||||||
value.local.path
|
value.local.path
|
||||||
+ "/"
|
+ "/" # TODO: dont add slash if type is "singlefile"
|
||||||
+ (optionalString (value.khal.type == "discover") value.khal.glob)
|
+ (optionalString (value.khal.type == "discover") value.khal.glob)
|
||||||
+ (optionalString (
|
+ (optionalString (
|
||||||
value.khal.type == "birthdays" && value.khal ? thisCollection
|
value.khal.type == "birthdays" && value.khal ? thisCollection
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,17 @@
|
||||||
url = "https://example.com/events.ical";
|
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
|
type=calendar
|
||||||
|
|
||||||
|
|
||||||
|
[[testSinglefile]]
|
||||||
|
path = $XDG_CONFIG_HOME/cal/timetable.ics
|
||||||
|
readonly = True
|
||||||
|
addresses= study@university.edu
|
||||||
|
priority=10
|
||||||
|
type=calendar
|
||||||
|
|
||||||
|
|
||||||
[[testcontacts-automaticallyCollected]]
|
[[testcontacts-automaticallyCollected]]
|
||||||
path = /home/hm-user/$XDG_CONFIG_HOME/card/testcontacts/automaticallyCollected
|
path = /home/hm-user/$XDG_CONFIG_HOME/card/testcontacts/automaticallyCollected
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue