chore: add test

This commit is contained in:
Mikilio 2024-06-04 19:16:38 +02:00
parent 573331c4c8
commit e58ae5524c
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F
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"