1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

chore: add test

This commit is contained in:
Mikilio 2024-06-04 19:16:38 +02:00
parent a270ff13a4
commit 20e9a90099
No known key found for this signature in database
GPG key ID: 0C159FAB320FEB35
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{
programs.todoman = {
enable = true;
glob = "*/*";
extraConfig = ''
date_format = "%d.%m.%Y"
default_list = "test"
'';
};
accounts.calendar.basePath = "base/path/calendar";
test.stubs = { todoman = { }; };
nmt.script = ''
configFile=home-files/.config/todoman/config.py
assertFileExists $configFile
assertFileContent $configFile ${./todoman-config-expected}
'';
}

View file

@ -0,0 +1 @@
{ todoman-config = ./config.nix; }

View file

@ -0,0 +1,3 @@
path = "/home/hm-user/base/path/calendar/*/*"
date_format = "%d.%m.%Y"
default_list = "test"